CM Pop-Up Banners (CMPB) - Pop-Up Banner with Form
Pop-Up Banner with Form
CM Pop-Ups Banner allows user to place HTML code in the banners content. This means that user can create for instance a subscribe form.
To create form in the pop-up banner, navigate to the Admin Dashboard -> Add New Campaign.
In the content field place form code (see example code on the screenshot below).
As action attribute set path to the php file with function to handle form data after sent. (Writing the PHP code for handling the form won't be covered in this documentation)
You can also place JS scripts here to support validation on the client side, tooltips, etc.
Forms coming from shortcodes
Most tiles you will not want to write your own form nor the code handling it, instead you can place a shortcode coming from the 3rd party plugin which will generate the form HTML automatically and make sure
that the data sent from the form is saved.
To set rest of the Campaigns options view this page, then Publish the Campaign.
Below: Pop-Up with provided sample form looks like this. After the "Publish" is clicked the data from the form will be sent to the url passed in the "action" attribute of the form.