I am using the ConfiForms IFTTT Integration Rules macro to send myself an email notification whenever a user fills out my ConfiForm with their email, project name, etc. The subject of my email contains [entry.programName], where programName is the field where the user inputs their program name. Everything works fine until a user submits multiple consecutive spaces in this field, resulting in an odd email subject name for me. For example, if the user inputs "hello test " (5 spaces after each word), I get the following in my email subject, which inevitably messes up my other automated links and whatnot:
hello test
Is there an easy way to keep this from happening, or does this require some complex conditionals in creating this email subject?
Hi @Rachel Andrews and welcome to this community
You can use the trim function that ConfiForms offers
[entry.field_name.trim()]
https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions
Alex
Thanks @Alex Medved _ConfiForms_ ! This works great when the field name is one word, but does not work when I have a multi word input.
ex: "hello test" needs to be "hellotest" in order to satisfy the trim function when in fact I want to keep it as "hello test"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
trim function does not trim all the spaces. It only removes leading/trailing spaces from the whole text value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.