Getting 1 wrong result out of 5 when running switch

Hi everyone. When running Switch for 5 different responses in Ui Studio, one response (in the middle) uses the “Default” response instead of the one displayed in its Message Box. All other responses are correct. I wonder why?

Hi @Hallgrimur_Ingolfsson_HI

May be the name given in the switch case and the name you have doesn’t match so it prints the message box in the Default section. Could you share the screenshot of the process that you are doing so that I can provide you better solution.

Regards

Hi @Hallgrimur_Ingolfsson_HI ,
Condition of them, have you check them.
Could you please share your source, can be screen short
regards,

Hi @Hallgrimur_Ingolfsson_HI

Please check whether there are any spaces in the data that is being printed in the message box.So, try using .trim() for that particular data and check whether still you are facing the same issue.

Regards

Hi Parvathy, here is a screenshot of this very simple Switch case:

Hi @Hallgrimur_Ingolfsson_HI ,

I think there is a Typo mistake in the Input Dialog Box - Green

Hi @Hallgrimur_Ingolfsson_HI

There is a typing mistake in color grey and Green. Mentioned below.

=> You have given Gray in Input Dialog box and Grey in Switch case.
=> There is typo mistakeGree in Input Dialog box and in switch case you have given Green.

If you don’t match the spellings correctly that is given with the Input Dialog box switch case won’t be executed.

Correct these it will work fine.

Regards

Hi, yes it sure is, thanks.

Hi Parvathy. Problem solved, thank you.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.