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:
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.
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.
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?
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).
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.
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).