• Hi Nate, I our country it is not required to require but only to notificate. So in other words, I want the consent text to show between the last field and the button but not the requirement of clicking the checkbox. At this point it’s all or nothing. People get confused if they have to click the checkbox… Can you somehow implement this in the next release?
    Thx. Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter drrob67

    (@drrob67)

    Thanks @natewr I’ll go play with it.

    Thread Starter drrob67

    (@drrob67)

    @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 5 years, 8 months ago by drrob67.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not to require consent’ is closed to new replies.