Item: NEX-Forms - Conditional Content Blocks Add-on

NEX-Forms - Conditional Content Blocks Add-on preview image

NEX-Forms - Conditional Content Blocks Add-on

Change large content blocks based on user input in emails and PDF's

Author
Basix
Category
WordPress , Plugins
Published At

* For first time visitor, please read: User Guide


Conditional Content Blocks add-on for NEX-Forms will give you the ability to change any content in your emails or PDF's based on the users input in the form.


**HOW DOES IT WORK?**

Lets create a scenario where we will have 2 types of content displayed when a user select A or B from our field called "Product".

The short-code is constructed as follows:

**[nfccb field="field_name" value="conditional_value"]** Content displayed if the field's value is equal to the value specified**[/nfccb]**
  
  So let say we want to display some content but only if a user select A from the Product field. We will add this in our email body or PDF content body:

**[nfccb field="product" value="A"]**You have chosen product A and here are some info relevant to product B etc etc **[/nfccb]**

So let say we want to display some content but only if a user select B from the Product field. We will add this in our email body or PDF content body:

**[nfccb field="product" value="B"]**You have chosen product B and here are some info relevant to product B etc etc **[/nfccb]**

So in your content you will have both these blocks in the same location in your HTML or plain text body, so basically the  the content in this area gets replaced according to the selection.

**[nfccb field="product" value"A"]**You have chosen product A and here are some info relevant to product B etc etc **[/nfccb]**

**[nfccb field="product" value"B"]**You have chosen product B and here are some info relevant to product B etc etc **[/nfccb]**

If A is selected only the content displayed in the short-code specifying value A will be displayed and not B...and visa versa
This can also be done for Email Recipients, Email Subjects, From Address, From Name and redirects after submit.