Home › Forums › Quform WordPress › Validating fields based on multiple values
- This topic has 10 replies, 2 voices, and was last updated 9 years, 9 months ago by pulse1989za.
- AuthorPosts
- June 22, 2014 at 9:31 pm #11527pulse1989zaParticipant
Hi
I would like to create conditional statements that validates fields based on values from a previous field.
An example would be the following:
Say Field A has countries, Field B has Hotels.
So what i would like to do is display The hotels based on what Field A has. So far the only way i can get this to work which is messy is by creating multiple fields that match different countries. is there any way i can display the hotels based on what value is in field a?
I dont mind editing the plugin, as i am comfortable with code as long as the instructions are clear. I jst want to try and get this to work. Also the only way i did this was via drop down menus. So is there any way to do this?
Thanks guys 🙂
June 24, 2014 at 9:55 pm #11579pulse1989zaParticipantbump
Please assist?
Thanks
June 25, 2014 at 4:47 pm #11593AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 26, 2014 at 9:03 pm #11606pulse1989zaParticipantThanks, busy trying it out will feedback soon ! 🙂
June 29, 2014 at 2:16 am #11625pulse1989zaParticipantHi
Is there no way of having 2x HTML block statements?
I duplicated the code and ammended but for some reason when i put the 2nd HTML block within the same group, everything breaks
June 29, 2014 at 4:20 pm #11635AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 6, 2014 at 1:45 am #11777pulse1989zaParticipantNot sure where im going wrong but its not working at all
so what i did is take your code, and do the edits i needed. I then duplicated the code for another field. however i have both fields i created referencing 1 at the same time.. will that cause a problem. So like i have form 1 which is hotel right, then i have form 2 which is city and form 3 which is accommodation type, but they both reference hotel (form 1) for their particular options.
When i place both HTML fields (form 1 and 2) into the form, everything breaks, they go back to the default options (option 1, 2, 3) instead of the html code i put. However if i take out the city html code, then the hotel one works again.
in the duplicate code i renamed the variables only, and assumed it would work but still no luck. Any way to fix this?
Thanks
- This reply was modified 9 years, 10 months ago by pulse1989za. Reason: small correction
July 7, 2014 at 9:04 pm #11793AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 16, 2014 at 9:56 pm #11878pulse1989zaParticipantHi Ally
Sorry for the delayed response.. I have sent the link to the info@themecatcher.net email address. Hope this is correct
Thanks
July 19, 2014 at 2:58 pm #11892AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
Attachments:
You must be logged in to view attached files.July 20, 2014 at 4:58 pm #11908pulse1989zaParticipantHi
Thanks for this. everything seems to be working now.
Thanks so much for the help!
- AuthorPosts
- You must be logged in to reply to this topic.