We received a requirement to toggle different forms in Adxstudio Portal when users select respective value in one of the field, example:-
Value 1 - Entity Form 1
Value 2 - Entity Form 2
Value 3 - Entity Form 3
Anyone have successfully tried JavaScript in toggling between the entity forms?
*This post is locked for comments
You can also use Web Form Steps to show different forms based on condition. First Step will be Select Type. Then COndition Steps and then Forms Step
I believe you can accomplish this with a combination of JavaScript and Liquid.
Here is some liquid code I used recently to display different entity forms, in my case it was driven by a request parameter and not a user selection:
You will first need to get a value for "X", perhaps from a button added to the HTML on your web page.
{% if X == 1 %}
{% entityform name: "EntityForm1" %}
{% else %}
{% entityform name: "EntityForm2" %}
{% endif %}
Depending on the value of X will drive which entity form is rendered.
Hope that helps.
Cheers
Nick
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156