By using Elementorforum.com’s services you agree to our Cookies Use and Data Transfer outside the EU.
We and our partners operate globally and use cookies, including for analytics, personalisation, ads and Newsletters.

  • Join the Best Unofficial Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!
elementor official

Dynamically change select form field value

M

MrMocha

New Member
Hello,

I have multiple services in a page and have a single form with a select field containing the names of all the services. Each service on the page has a button that triggers the form in a lightbox. What I want to happen is when the user clicks a button under Service A it should trigger the form in the lightbox and change the select value so that Service A is pre-selected. I can't see a built in way to do this with Elementor and I've tried writing my own js to get this working, but haven't managed it so far.

Does anybody know a way to dynamically change a select field value?
 

Attachments

  • options.png
    options.png
    156.4 KB · Views: 6
  • form.png
    form.png
    448 KB · Views: 6

Latest posts

Latest Resources

Other Elementor Resources

elementor official
Top