| @@ -512,8 +512,18 @@ | ||
| 512 | 512 | // Consent Required |
| 513 | 513 | mxchat_render_field_wrapper('consent_checkbox_required', __('Require Consent to Submit', 'mxchat'), function() use ($admin_instance) { |
| 514 | 514 | $admin_instance->consent_checkbox_required_callback(); |
| 515 | 515 | }, __('Block form submission until the box is ticked. Off means the checkbox is optional (a soft opt-in).', 'mxchat')); |
| 516 | + | |
| 517 | + // Also show for logged-in users (c0cfaf) | |
| 518 | + mxchat_render_field_wrapper('lead_capture_logged_in_toggle', __('Also Show for Logged-In Users', 'mxchat'), function() use ($admin_instance) { | |
| 519 | + $admin_instance->lead_capture_logged_in_toggle_callback(); | |
| 520 | + }, __('Show the form to signed-in visitors too, pre-filled from their profile. Off means signed-in visitors skip it, as they do today.', 'mxchat')); | |
| 521 | + | |
| 522 | + // Require email (c0cfaf) | |
| 523 | + mxchat_render_field_wrapper('lead_capture_require_email_toggle', __('Require Email Address', 'mxchat'), function() use ($admin_instance) { | |
| 524 | + $admin_instance->lead_capture_require_email_toggle_callback(); | |
| 525 | + }, __('Off means the email field is optional, so you can collect a name (and consent) without an address.', 'mxchat')); | |
| 516 | 526 | ?> |
| 517 | 527 | </div> |
| 518 | 528 | </div> |
| 519 | 529 | |