Skip to main content
Participant
December 13, 2019
Answered

Apostrophe in advanced actions doesn't work properly

  • December 13, 2019
  • 1 reply
  • 406 views

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 has been closed for replies.
Correct answer danielc22971436

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.

1 reply

Stagprime2687219
Legend
December 13, 2019

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?

danielc22971436AuthorCorrect answer
Participant
December 13, 2019

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.