This shortcode generates a form for submitting leads. The form includes fields for first name, email address, and two hidden fields for lead referrer and lead page. The attributes for this shortcode are:
- fnametext (default:
First Name:
): Customizes the label for the first name field. - emailtext (default:
Email Address:
): Customizes the label for the email field. - inputclass (default:
''
): Adds a custom CSS class to form input fields for styling. - buttonclass (default:
''
): Adds a custom CSS class to the submit button for styling. - buttontext (default:
Submit
): Customizes the text displayed on the submit button. - redirect (default:
''
): Determines the URL to redirect users to after form submission. - mailmintlistid (default: fetched from
dbp_mailmint_lead_list_id
option): Specifies the default list ID for Mailmint integration, which can be overridden. - redirectreferid (default:
false
): Appends the referral ID to the redirect URL after submission. - field_order (default:
first_name,email
): Determines the order of fields displayed in the form. - placeholder (default:
false
): Decides whether to use placeholders in form fields instead of labels.
Here’s an example of how you can use the shortcode with custom attributes:
[dbp_lead_form
fnametext="Your First Name"
emailtext="Your Email"
inputclass="lead-form-input"
buttonclass="lead-form-submit"
buttontext="Join Now"
redirect="https://www.example.com/welcome"
mailmintlistid="12345"
redirectreferid="true"
field_order="first_name,email"
placeholder="true"]