• Join the Best Wordpress and 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!

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: 388
  • form.png
    form.png
    448 KB · Views: 387

Latest Resources

Other Elementor Resources

elementor official

Still stuck? Ask the forum

Post your question with a screenshot and a link if you can, and a member will usually reply within a day. Free to join, no sales pitch.

Create a free account
Top