Skip to main content

I’m at a loss. Trying to wrap up our NAC Onboarding Process and I cannot figure out how to take a previous multiple-choice field that was completed by a user and pass it back through to the same ML choice field on the same task. 

 

I’m looping back through the same question and want to preserve the answers if they got it right and lock the control. I managed to make it work with the single choice fields. 

 

User answers 30 questions on a quiz (task) and if they make below an 80 it let’s them attempt 2 more times. 

 

What I need is the answers to be defaulted for what they previously entered so i passed the ML choice field through a loop for each and added each answer to a collection called “collQ7”. I passed that into my default value and it’s not recognizing selections.

 

These questions are all ML choice fields and are outputted as text from my collections as followed: 
 

Now, I have commas for some of the answers so to make the logic/rules easier for me, I did the the line thing at the end of each option with a shorter version of the answer. So that is where my “Correct or “Incorrect” values are coming from. Not really sure what those are callled but noticed what they did and thought it would make things easier. Those values re-entered back into the single choice fields work fine and are recognized. 

 

Any thoughts on why this is NOT working? Now that I”m looking at it, I’m thinking it’s the brackets and quotations… lol gonna go try removing those and see if that works! 

 

However, ideally it should take a collection string I would think, no?

This article helped, should anyone run into this issue again. In hindsight, should have searched community first before posting.

 

Way to remove the square brackets and quotation marks from a multiple choice list? | Community


Way to remove the square brackets and quotation marks from a multiple choice list? | Community


Yikes, so I fixed the string to something acceptable for default value, but it won’t allow text values, only collections. Can someone please advise how to default a ML choice field if text won’t work and collections are NOT recognized? 

If I type in the text value my variable has, it renders. So I know it works when you type the text you want in the default value. I just don’t know how to dynamically add it now. Won’t accept the collection string OR the txt string. Sighs


Ok I went back to help documentation. I couldn’t get anything to work and did it in “rules” the way it explained. So, how do I use rules to default the ML choice fields? 

What am I doing wrong? 
 

I have the variables set where it matches. That part works and my variable for attempt works. I know this because it’s locking the field. The value is what I’m missing. I have a locked field without values, cause collection of values are not being recognized.


I did a test with start event form passing ML choice field to task form - works fine if directlky passing the start event form ML variable to the default value field.

 

 


The only solution I see is allowing text fields to be passed to default value for the ML choice fields or fixing how it reads/recognizing the collection from workflow designer - cause it’s not reading them, and the only way to modify it is to create a text string and then we are stuck to not having the option to use the text variable to pass it through - so dead end. ​​​​​​​


Reply