Home › Forums › Quform WordPress › Form element interaction
- This topic has 5 replies, 2 voices, and was last updated 12 years, 3 months ago by
Ally.
- AuthorPosts
- February 26, 2013 at 11:31 am #3119
addinall
ParticipantI was gpooing to code this up myself, but seeing you guys had already done most of the work, I bought one! I would like to do the following if I can.
When a conditional is chosen then a specific set of check box choices are displayed, i.e.
Classic Rock <----------------------------------+
Country and Western |
Techno |
|
\/
x Rolling Stones
0 Pink Floyd
x Led Zepplin
[ ... ]That bit is easy enough. What I would like to do now is when a checkbox is hit, onSelect or onChange perhaps, is to have the VALUE of that selection appended to the string that is represented
by a in the form.With the [x] selected above, the text area will be
Hi, my selections are:
Rolling Stones
Led ZepplinIs this possible with the current code? If not, where do I start to look to write it in?
Cheers,
MArk.February 26, 2013 at 11:43 am #3120Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 26, 2013 at 11:55 am #3122addinall
ParticipantPERFECT!! I will be buying more than one of these!
One last question, where would be the best place to stick the code? I am a bit of a newbie at WordPress. I know my way around Javascript and PHP well enough!
Very well done. Renewed my faith in plugins()
Cheers,
MArk.February 26, 2013 at 11:57 am #3123Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 26, 2013 at 12:00 pm #3124addinall
ParticipantJust looking at your syntax, does that mean that two forms could interact with each other via the unique id?
var $checkboxes = $(‘.iphorm_1_1’), // first form, colum 1
$textarea = $(‘.iphorm_2_2’); // second form, widget areaTHAT would be interesting!
Cheers,
Mark.February 26, 2013 at 12:04 pm #3127Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 26, 2013 at 12:20 pm #3130addinall
ParticipantHOOT!!! I’ll post it up when I get it to work! Mucho grassy-arse from me
Cheers,
Mark. - AuthorPosts
- You must be logged in to reply to this topic.