The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Tailor-made text
Hello,
I've a form with 4 optional fields and 1 required field. I also have 1 hidden field to create a tailor-made text. This field is build up using the 5 input fields. However, if 1 or more of the optional fields is not filled in, I get gaps in the hidden field. Since, I do not want that, I like to know how to build up this hidden field with only the filled in fields. Please, advise. Thanks. Eric
October 28, 2018 at 3:15 pm
Hi Eric,
You haven't mentioned how hidden field value is constructed from other field values. Based on my understanding of your question, most likely you will need custom code using Javascript. If you are familiar with the jQuery library, it can be used to check optional field values and set hidden field value accordingly.
Again I don't know your use-case. But if you are setting hidden field value so that you can display in a view or add in an email message, there is a better way. Remove hidden field and directly add the Tailor-made text in the view or email message where you can use the conditional shortcode to check optional field values and avoid them if empty. https://formidableforms.com/knowledgebase/conditionals/
October 29, 2018 at 3:24 am
Hi Sujeevan,
Thanks for your response.
I've used the calculation with text fields: [a] [b] [c][d] [e]. Unfortunately, I'm not familiar with jQuery. I will investigate your other sugggestion using conditionals. Thanks. Eric
Discussion closed.