Posted: November 9, 2013 at 4:46 am
|
I have a questions group that is hidden using jquery and becomes visible by clicking a radio button. Is it possible? |
|
Hi Marco, If you are using javascript to hide/show the question group you could just extend that code to say (in pseudo code) “if this element is visible, grab the data from the name/email fields and add it into these fields” |
|
Hi Dean, I tried but definitely I’m doing something wrong because I cannot retrieve the data. |
|
Hi, The best example I can give is to provide a link to the jQuery API – http://api.jquery.com/val/ That gives many different examples of obtaining data from elements. |
|
OK Dean, |
|
To understand I’m in this situation: What I want to do is copy the contents of the fields already filled in (since the user is a returning user) into a new group of questions if this is made ??visible by jquery. So it’s right to use jquery as thou hast written? |
|
That’s my understanding of your requirements: the name/email is already filled out and if the custom questions are made visible, grab that data and add it to the new now visible fields. You could of course just add it straight away, even while they are not visible. As such jquery is the best option for you here, in my opinion. |
|
Yes Dean. You have understood correctly what I need. |
|
I can’t give you that confirmation as you could probably do it with PHP as well. jQuery is simply the easier route. |
|
OK Dean. Thanks again for your support |
|
No problem at all. |
|
Hi, Now, I need the following: if the radio button is checked to ‘yes’ value and then the next group of questions is visible, I would like to hide / delete the values ??in the group of personal information. Instead, if the radio button is checked to ‘no’ value I would like to reset the default values. In reality the problem is only the second part: that is, to recover the data again after they have been hidden / deleted from the fields Is it possible to do this? Can you help me? Thanks in advance |
|
Hi Marco, It should be possible but I think you need a developer to assist you here, as it is outside of the remit of support as it is a modification rather than an issue with the plugin. |
|
OK! Thanks anyway |
The support post ‘Copying personal data into a new questions group’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.