Try to pass a value from a form to a Contact Form 7 text field
-
Hello to all.
I want to pass a value from another form to a contact form field.
I’m using the following code, but it’s not working:<form class=”to-right rent” action=”/site/book-now/” method=”post” name=”book-now”>
<input type=”hidden” name=”villa” value=”Rent: <?php echo $title[0] . ‘ – ‘ . $category->name . ‘ / from ‘ . $_date_ranges[0] . ‘ to ‘ . $_date_ranges[1] ?>”>
<button type=”submit” class=”pointer”>Book Now</button>
</form>The contact form field in which i want to pass the value has text as type.
I’m using Contact Form 7 and WordPress 4.3.1You can check the URL here:
https://danonco.com/site/#/site/properties/The Contact Form 7 is here:
https://danonco.com/site/book-nowCan you help me on this?
Best,
Kon
- The topic ‘Try to pass a value from a form to a Contact Form 7 text field’ is closed to new replies.