Fixed #18777 -- Localized form fields with as_text/as_hidden

Thanks croldan for the report.