You need to sign in to do that
Don't have an account?
Screen Flow Error while creating record
I am creating a rather complex questionnaire in flow.
I've noticed a rather odd behaviuor...see the following example:
Q1. Do you have kids?
Yes/No (choice Yes=Truie, choice No=False)
Q2. are you kids at school? (the component visibility for this Q is set if Q1=Yes)
Yes/No
Now, I can finally create a kids profile record
The Kids Profile object includes Q1 and Q2 checkboxes so that I can map to the actual screen questions.
Here is the problem, if I map both Q1 and Q2 on the create records component, but the response for Q1 happens to be No, Q2 gets skipped and in the debug Q2 results to be a null, and consequently a INVALID_TYPE_ON_FIELD_IN_RECORD error will occur.
Considering that I know why the error is being triggered, I believe that for a screen funtionality, there should actually be something that ignore the mapping for skipped questions; I can't believe this is not a stardad functionality...
Please let me know if it's just me that I am missing something or it's really like that.
Sounds strange. Without seeing your flow I suggest trying to setting up your insert differently. There's a couple different ways to do it.
you can:
I try to stick to the first approach, for no particular reason, but maybe if you try a different approach it will work for you.
The second point is what I am actually doing already. I will try the first approch and see what happens.
Ok, after a bit of investigation and tests, I can confidently say that there is no way to push a null value into a checkbox, but this would be well needed in a questionnaire / screen flow environment, as the questions logic may lead a simple yes/no ratio button question to be skipped. This should work in the same way the Default checkbox works with screen components, it only works if a question gets really asked and would not work if the question is skipped due to the component visibility settings.
The workaround is simply mapping the Yes/No ratio buttons component to a picklist rather than a checkbox. In my scenario, I actually need the result as true/false, so I must convert that to checkbox using an additional formula field, or an additional field and an automation.
Thanks @Stepan, I was struggling.
My formula used " [CheckboxField] = NULL ", but that didn't work, yours did!
aces etm (https://www.acesetm.me/)
Thank you very much <3!
MyAARPMedicare (https://www.myaarpmedicare.fit/)
To eliminate the problems when testing the speeds of the internet, internetspeedtesterx provides a ATMC internet speed test (https://internetspeedtesterx.com/atmc-speed-test/)
that tests your connection in the ATMC network
Your question is very informative, and also your answer is very informative.
Regard:
Condo Lobby
Your question is very informative, and also your answer is very informative.
Regard:
condos toronto downtown (https://condolobby.com/condos-toronto-downtown/" target="_blank)
Regards: https://dialedinepoxy.com/
Regards: residential epoxy flooring phoenix (https://dialedinepoxy.com/)
Your question is very informative, and also your answer is very informative.
It is much helpful for the analytic expert tofind out the probem in this way
Regard:
https://go-india.in/Goindia (https://go-india.in/)