Hi @drrob67,
Sorry for the late reply. That consent checkbox was specifically for EU regulations, and I probably won’t add lots of different options around that. However, the easiest thing to do is probably to add a small bit of HTML output into the form using some custom code.
The following code, if added to a theme or plugin, should print some output at the end of the form, before the submit button:
add_filter( 'rtb_booking_form_fields', function( $fields, $request, $args ) {
$fields['privacy-notice'] = array(
'fields' => array(
'privacy-statement' => array(
'title' => '',
'request_input' => '',
'callback' => function( $slug, $title, $value, $args = array() {
echo '<div>Your text here.</div>';
} ),
'required' => false,
),
),
'order' => 900,
);
} );
Change the <div>Your text here.</div> part to whatever you’d like to show users.
For this, you’ll probably want to disable the consent option in the settings or you’ll end up with both.
Thanks @natewr I’ll go play with it.
@natewr, I thought the best place to add this code was in ‘template-functions.php’, but that give me some errors. Like : syntax error, unexpected ‘echo’ (T_ECHO)
What would be the best place?
-
This reply was modified 7 years, 2 months ago by
drrob67.