5 text fields - Post ID 253793

User 2803977 Photo


Registered User
4 posts

I have 5 text fields and at least on is required. Is there a way of doing that, or where can I look to see how it is done?

Thanks
User 187934 Photo


Senior Advisor
20,190 posts

Hi Stephen,
I will add one then select it and do ctrl+c then ctrl +v the number of times for the number of fields needed.
Otherwise drag and drop from the right hand panel.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2803977 Photo


Registered User
4 posts

I probably did not explain myself properly. I have text fields that are not required, but if they fill out one of them then the rest become required. I know it can be done using jquery

per1_r: {
required: '#per1_n:filled'
},
per1_a: {
required: '#per1_n:filled'
},
per1_csz: {
required: '#per1_n:filled'
},
per1_m_no: {
required: '#per1_n:filled',
minlength: 12,
},


Can something like this be done using Web Form Builder or do I have to code it afterwards.

Thanks
User 38401 Photo


Senior Advisor
10,951 posts

Why not use conditionals to have things show as needed rather than always showing? That would probably take care of the issues for this.
User 2803977 Photo


Registered User
4 posts

I can do that, thanks

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.