UserDialog Message Bug
-
- Posts: 26
- Joined: April 7th, 2022, 4:17 pm
- Contact:
UserDialog Message Bug
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?
word count: 151
Tags:
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: UserDialog Message Bug
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
word count: 27