• Hello,

    I do have a contact form setup for restaurant reservations and would like to add an Image of the tables one could reserve on top of the reservation page.

    I would like to add a link to the image so the field value for e.g. table number desired is filled in the contact form field automatically.

    Anyone there who has an idea how that could work?

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • A pure JS solution could be done…

    First, create a hidden field in the form named “seat” or whatever.

    Then, place an image in your page. Use some JS to detect where the user clicked within the image (hint: you can create bounding boxes in x1,y1,x2,y2 in an array). Then, create a click handler that updates the “seat” hidden form field.

Viewing 1 replies (of 1 total)
  • The topic ‘Fill field values by clicking on a linked image’ is closed to new replies.