Hi, I wonder how to add a prefix or suffix in a Single Line Text Field.
If the Text Field is empty, then the prefix or suffix value would not be stored.
Thanks
Hi, I wonder how to add a prefix or suffix in a Single Line Text Field.
If the Text Field is empty, then the prefix or suffix value would not be stored.
Thanks
Hi Kelvin,
You can use our GP Copy Cat Perk, to copy the value entered into a single line text field into another field, probably a hidden field, and add either a prefix or suffix to the copied value.
Here is a sample of the snippet you’ll need to use with GP Copy Cat to add the prefix or suffix to the copied value.
You can get in touch with us via our support form if you have any questions.
Best,
Kelvin, if you’re fine writing your own code, you can also use the following filter to check the field value before saving it to the database and add the prefix if the value is not empty: gform_save_field_value - Gravity Forms Documentation
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.