Would love to have a toggle on feature in the “Advanced” section for any text based input fields that automatically trims any leading or trailing whitespace.
Can workaround with character max and then placeholder text but enabling that kind of feature would be preferred.
I will forward this suggestion to our engineering team now for consideration for a future release and will let you know in this thread once there is an update on this!
Thank you for taking the time to provide this suggestion. We always appreciate our users’ feedback!
@ray i think you can use regex in field validation to achieve this. it doesn’t automatically trim the whitespace from their entries, but it’ll prevent users from submitting inputs with leading or trailing whitespace.
Try this for example: ^\S(.*\S)?$
This pattern should ensure the user can only input a value that doesn’t start or end with a whitespace character. If there are extra spaces at the beginning or end, the form will display a validation error, prompting them to correct it before submission.
I haven’t tested this, but you should be able to apply pretty much any restriction you can think of using Regex. ChatGPT is great for help!