Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Trying to add a Prefix and Suffix to a text Field

New Here ,
Jan 19, 2017 Jan 19, 2017

HI

I have text field in a form where a user enters a 6 digit code, after input I want the six digit code to have EA at the start and .OUT at the end, can this be done?

thanks

TOPICS
PDF forms
5.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jan 19, 2017 Jan 19, 2017

OK. In that case you can use this code as the field's custom Format script:

if (event.value) event.value = "EA" + event.value + ".OUT";

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 19, 2017 Jan 19, 2017

Do you want these texts to be an actual part of the field's value, or just to appear as a custom formatting (like a dollar symbols in a price field. The field value is just a number, but the dollar symbol is added to its presentation)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 19, 2017 Jan 19, 2017

Hi

its basically a form that would get email to me as an attachment that I can also add information into ans save it, the info will not be exported so it would just be more of an appearance issue

thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 19, 2017 Jan 19, 2017

OK. In that case you can use this code as the field's custom Format script:

if (event.value) event.value = "EA" + event.value + ".OUT";

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 19, 2017 Jan 19, 2017
LATEST

thank you so much, your time and effort it very much appreciated

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines