Skip Navigation

[Resolved] Auto generate field data

This support ticket is created 8 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 8.96 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 8 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#430866

I am trying to:
Create a vehicle listing site by customizing reference site.

I want the user to just select the make and model and the basic details of vehicle auto populate such as doors, seats, drive(2 or 4 wheel) etc.

Once basic details are populated, user could enter additional details such as engine number, color etc. to add listing.

Could you please let me know how could I auto populate the basic details?

#430924

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Unfortunately this is not something that is possible with our plugins. You will need to create some Javascript in order to auto populate the items.

The javascript will need to get the value of the selected items and then auto select the value of another item based on what was selected.

Please let me know if this helps.
Thanks,
Shane

#432099

Hi Shane,

Is there any example of how to get data of toolset fields using javascript?

Thanks

#432735

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

You will need to get the value from the actual screen and not the database.

To do this just use the code below.

var optionVal = new Array();
    $('select option').each(function() {
            optionVal.push($(this).val());
        });

For more advanced assistance I would recommend that you contact one of our certified consultants as they are more equipped to do custom code for you.

You can contact them by going to the link below.
https://toolset.com/consultant/

Please let me know if this helps.
Thanks,
Shane

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.