- February 7, 2014 at 9:10 am #6940
I have a scenario with 5 checkbox choices. If some or any are selected I need to notify the proper person. Is their a simple way to do this without writing a huge if statement with ~20 scenarios?February 7, 2014 at 9:50 am #6946
You could create a behavior on when the checkbox group changes field data. Use a Multiline Text hidden helper field. Start by setting the helper field to empty. Then create a Multiple Branch or a series of simple branch objects to populate the hidden helper with the values of all the checked checkboxes separated by commas (no spaces). Then create a role and make the owner of the role the email addresses in that hidden helper field. Send the notification to that role.February 7, 2014 at 11:35 am #6950
How would I set the value for the checkboxes? The end user needs to see example Federal Programs but we’d want that value to me email@example.com.February 7, 2014 at 11:38 am #6953
Sorry, I forgot that only radio buttons and drop-downs have values AND captions. You can’t use either of those objects though because you want to be able to make multiple selections. For checkboxes you will have to build that into the set field behavior, setting the helper field with specific emails rather than from the value of another object.February 7, 2014 at 1:08 pm #6955
So if I have a 5 checkboxes I need to make a scenario for each? I’ve spent about 2 hours creating close to 30 scenarios and am only about 50% done. I’m sure there’s a better method.February 7, 2014 at 1:10 pm #6957
If there are that many, I would use a series of Simple Branches when the group changes data. With each true answer to a simple branch you add email address(es) to the hidden helper. Assign the role to that hidden helper, send the notifications to that role. That should be much simpler.
You must be logged in to reply to this topic.