Autocomplete Form Dropdown Menu Using Website Button
-
Could anyone please advise how to link to a contact form page using a button elsewhere on a website that will autocomplete/autofill a form dropdown-menu.
I’ve tried the following without success:
<a class="small round button formsubmit" href="contact-us?subject='Brochure Request'">Request</a>
Note: The link works but the dropdown-menu does not get autocompleted.
<input type="submit" class="small round button formsubmit" value="Request" onClick='location="contact-us?subject=<?php $clc-subject = 'Brochure Request'; echo $clc-subject; ?>"' alt="Brochure Request Button" />
Note: Applying this code generates an error that breask the site as follows:Parse error: syntax error, unexpected ‘=’ in /home/coprmins/public_html/blog/wp-content/themes/copperblog/footer.php on line 38
The error relates directly to the code shown above.
I would be grateful for any assistance.
- The topic ‘Autocomplete Form Dropdown Menu Using Website Button’ is closed to new replies.