Skip to main content
Participant
Dec 13, 2019 6:52 PM UTC
Answered

Apostrophe in advanced actions doesn't work properly

When putting an apostrophe in the string of a variable in an advanced action (as well as the Javascript formatting for a carriage return, e.i. `\r`), it seems like the advanced action will cease functioning.

 

I would like to test someone on typing in correctly this statement:

                            "I shouldn't have done that."

 

But currently I can see no way of doing so through advanced actions. I am trying to build without the use of Javascript in my captivate file, help would be much appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.
danielc22971436Correct answer
Participant
Dec 13, 2019 7:45 PM UTC

To be honest, I don't know of anything outlying factors I haven't mentioned but funny enough I just randomly tried inputting \\\' for an apostrophe in my string value to check whether my text box had the correct text in it and that happened to work perfectly.

2 replies

Stagprime2687219
Legend
Dec 13, 2019 7:31 PM UTC

I successfully did this with both an advanced action on a button and a text entry box.

Is there something else going on that we might need to be aware of?

Translate
danielc22971436AuthorCorrect answer
Participant
Dec 13, 2019 7:45 PM UTC

To be honest, I don't know of anything outlying factors I haven't mentioned but funny enough I just randomly tried inputting \\\' for an apostrophe in my string value to check whether my text box had the correct text in it and that happened to work perfectly.

Translate