Hi there,
For your wedding RSVP form, how can I add an additional "Message" with 6 rows (similar to your other contact forms)?
Thanks!
J
1 reply · opened Feb 6, 2017
Hi there,
For your wedding RSVP form, how can I add an additional "Message" with 6 rows (similar to your other contact forms)?
Thanks!
J
Hello,
This is Definitely Possible! You can simply Copy the HTML of the Message Input from the Contact Form and paste it in the Wedding RSVP Form. However, for the PHP Part, you will need to Edit the include/rsvp.php File to Add the Message Field. There are 3 Steps to configure this in the include/rsvp.php File:
$events = isset( $_POST['wedding-rsvp-events'] ) ? $_POST['wedding-rsvp-events'] : '';and add the following code just below it:
$message = isset( $_POST['wedding-rsvp-message'] ) ? $_POST['wedding-rsvp-message'] : '';Make sure that the wedding-rsvp-message is same as the Form Input’s name attribute in the HTML.
$events = isset($name) ? "Event: $events
" : '';and add the following code just below it:
$message = isset($message) ? "Message: $message
" : '';$body = "$name $email $guests $events $referrer";Example:
$body = "$name $email $guests $events $message $referrer";This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard