Support

Home Forums Event Espresso Premium Copying personal data into a new questions group

Copying personal data into a new questions group

Posted: November 9, 2013 at 4:46 am


Marco Genovese

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.
If questions group is visible, I would like to copy personal information (Surname, First name and e-mail) within it using the auto-complete function.

Is it possible?


Dean

November 11, 2013 at 3:11 am

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”


Marco Genovese

November 11, 2013 at 3:17 am

Hi Dean,
thanks for the reply.
Please, could you give me some examples of how I could implement this feature?

I tried but definitely I’m doing something wrong because I cannot retrieve the data.


Dean

November 11, 2013 at 3:35 am

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.


Marco Genovese

November 11, 2013 at 3:37 am

OK Dean,
thanks a lot!


Marco Genovese

November 11, 2013 at 3:48 am

To understand I’m in this situation:
a user logs in to buy an event. Then, the user is already registered. This means that when it comes to buy an event, its fields (name, surname and email) will be pre-populated

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?


Dean

November 11, 2013 at 5:00 am

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.


Marco Genovese

November 11, 2013 at 5:07 am

Yes Dean. You have understood correctly what I need.
Then, give me confirmation that only with jquery I can solve my problem?


Dean

November 11, 2013 at 5:17 am

I can’t give you that confirmation as you could probably do it with PHP as well. jQuery is simply the easier route.


Marco Genovese

November 11, 2013 at 5:18 am

OK Dean. Thanks again for your support


Dean

November 11, 2013 at 5:21 am

No problem at all.


Marco Genovese

November 12, 2013 at 11:01 am

Hi,
With JQuery, I managed to copy the personal data on a new group of questions that is made visible by clicking on a radio button.

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


Dean

November 13, 2013 at 2:15 am

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.

https://eventespresso.com/developers/event-espresso-pros/


Marco Genovese

November 13, 2013 at 2:45 am

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.

Event Espresso