← Back to Forms
text('name', 'Name', '', true, $form_def['name'])
->select('definition.email_key', 'Email Key', $email_key_options, "Form field that holds the submitter's email address.", true, $definition['email_key'] ?? '')
->custom('Success message', function () use ($definition) {
$editor = RsvCodeEditor::render('definition.success_message', [
'value' => $definition['success_message'] ?? '',
'mode' => 'text/html',
'rows' => 8,
]);
$hint = esc_html('Shown to the visitor after a successful submission. HTML is allowed. Use to display the selected reservations. Leave blank for the default message.');
return '
'
. '
' . $editor . '
' . $hint . '
'
. '
'
. 'Live preview'
. ''
. '
';
})
->render();
?>
Membership Discounts
Map a membership program to a discount percentage. The chosen field's value must match a key in that program for the discount to apply.