Page 1 of 1

UserDialog Message Bug

Posted: October 11th, 2022, 5:09 pm
by mollydunn
I have a controller that is triggered on click of a button and it is supposed to show a UserDialog box to confirm, then if the user's response is yes, it forwards to a widget. I ran into an issue with the UserDialog service where the dialog box would not appear. I have now reached a point where it shows correctly sometimes but not others. Although I get no exceptions, through troubleshooting my suspicion is that the issue is due to the apostrophe in the message? Below are three logs for the same UserDialog service. The first log was successful. The other two were not meaning on clicking the button no window appears. The only thing I altered between the cases was the message. When I changed the message back to the one used in the first case, it works correctly again. Would someone be willing to take a look?

Re: UserDialog Message Bug

Posted: October 12th, 2022, 12:25 pm
by SteveCap
This is because it creates a javascript command and adding in the ' breaks the command. You need to escape it so try changing it to users\'s