3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

Laura_Frease1
Level 1

3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

Hello - Please help!

 

We are currently using Unbounce Landing pages and forms which allow us to use one universal script (JavaScript) to populate fields based on 3 layers of conditional logic (described below).  Using this universal script is easier/quicker for us to make/manage updates to field drop downs across all forms in one central location. 

 

I was curious if it is possible to create and utilize universal script across all Marketo forms to accomplish the same as we are doing in Unbounce?   If not, does anyone have another solution?

 

Description of 3 layers of conditional logic:

 

  1. Person selects one of 9 various "Programs of Interest" (PoI) values.
  2. Based on the Program of Interest value: the user can select various Campuses in "Campus" dropdown- Campuses are uniquely specific for each PoI value so some Programs can have 2 campuses and some 4 or 5, etc.
  3. Based on the Program of Interest and Campus values selected from #1 and #2 above, specific/unique Start Dates (drop down) can be selected from the user. Start Dates are also uniquely specific to each PoI/Campus combination.

I also am unable to create the 3rd layer of conditional logic using Marketo forms out of the box, #1 and #2 are possible but #3 (3rd layer) is not possible from what I see - if anyone has a way to achieve this 3rd layer or suggestions that would be appreciated.

5 REPLIES 5
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: 3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

You could add a hidden field to hold the concatenated values of the first two fields (use a separator like ";" or "|"character to separate both the fields' values). Set the value (in the concatenated format) of this hidden field when the user selects the values for PoI and Campus fields using Marketo Forms JS (i.e., set this field based on the user's selection using JS). Use the OOTB form's visibility rules on your start date field to show the correct values based on this hidden field's value. You'd have to add the viz rules on the start date field for all the possible combos of PoI and Campus values.

 

Laura_Frease1
Level 1

Re: 3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

Thanks!  Just wondering how to maintain and manage your suggestion.

 

So if we have 20+ Marketo forms with your suggested set up and we wanted to delete or add a start date, would we have to touch/update all 20+ forms in the viz rules on the start date field?  Or could this be handled one time in a Global form?

 

Also if we wanted to add/delete a PoI or Campus - that could be updated once and copied in the Marketo Forms JS across all 20+ forms? Or could this be handled one time in the Global form?

SanfordWhiteman
Level 10 - Community Moderator

Re: 3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

It’s always best practice to keep common form behaviors in a separate JS file hosted in Design Studio.

 

You can then include that script alongside the form embed (on non-Marketo pages) or in the LP template (on Marketo LPs).

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: 3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

Totally agreed with Sandy here. You can link your common JS via the Design Studio URLs everywhere instead of having to add and maintain those individually at the LP template/LP asset level.

 

Katja_Keesom
Level 10 - Community Advisor + Adobe Champion

Re: 3 Layer Conditional logic in Marketo forms - is it possible? Is Universal script possible?

One other comment: Assuming your 20+ forms would all be identical, the recommendation would always be to only create one form, hosted in Design Studio and have the different programs refer to this single form. In the smart campaign of your program you can restrict follow up depending on the page where that form was filled out (leveraging the Referrer constraint).