Issue with Select list, visibility rules, and having multiple values

Anonymous
Not applicable

Re: Issue with Select list, visibility rules, and having multiple values

Thank you for your comments. I've moved most of my external altercations to the forms API, works like a charm.

As for the overall issue here... I think that having to prefix values is bad UX. There needs to simply be the option in the visibility rules to select the default for each rule. Although your solution you used in that pen^ works well and I will probably end up mimicking, its ~30 lines of js that should be built in and I would hate to have to update every time my company decides to move into another territory.

SanfordWhiteman
Level 10 - Community Moderator

Re: Issue with Select list, visibility rules, and having multiple values

You don't have to prefix values. Heck, you could use an intuitively-named JS object or array of objects, or whatever data structure you want.  And you could even fetch the list from your server via Ajax so the list can be stored separately from the form....

Anyway, I agree that having more robust (or at least bug-free!) built-in business rules would be good, but my experience with form builders is that I always want to do something the form builder doesn't do natively: no matter how much it offers, it somehow doesn't fit my I-don't-think-it's-crazy use case or preferred UX (on the client side). That's why I'm glad that the Forms 2.0 API exists because you really can hook in unlimited logic but you don't have to sync your own back end with Mkto.

Max_Maurier
Level 3 - Champion

Re: Issue with Select list, visibility rules, and having multiple values

I ran into this issue today and found a foolproof fix!

You need to change the default value BEFORE you set any visibility rules. If you change the default value AFTER, you will run into this issue every time, but if you do it before, it will work perfectly.

I hope this helps, and this bug shouldn't exist in the first place, but it completely solved the issue for me.

Tags (1)