UserDialog Message Bug

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
mollydunn
Posts: 26
Joined: April 7th, 2022, 4:17 pm
Contact:

UserDialog Message Bug

Unread post 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?
Attachments
UserDialogSuccess.png
UserDialogFail1.png
UserDialogFail2.png
word count: 151

Tags:
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

Re: UserDialog Message Bug

Unread post 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
word count: 27
Post Reply