Collect a phone number on the first slide and connect to an API to send a text with Captivate?
I am not a user of Captivate, but rather a software developer who has been tasked with integrating custom software with it, so I would appreciate additional context or ideas that solve my problem but deviate from what I have speced out here.
I have the following need:
- On the first slide, collect a phone number from the user and somehow save it. Ideally it would be validated, but if not, I can live with that. I know that I can collect this with an text entry box, but I cannot find anything on saving that text entry to a variable and referring to that variable in JavaScript on a later slide to use in the API call (it is quite possible that I am approaching this too much like a coder or getting all the terminology wrong). Or another way that would work is if each user of a Captivate instance were assigned a unique ID and that could be accessed via JavaScript instead (as then I can just save it to our API with the phone number and ID and use the ID to send the text messages on the other slides).
- On several slides, either when the slide changes or perhaps on the press of a button, I would like to call a webhook that uses that phone number/user ID and the slide number or perhaps some other unique identifier. I believe that I can do this with Execute JavaScript. What I do not know is what version of JavaScript is supported by this. Would 'fetch()' be supported? I would investigate this myself, but I also lack access to Captivate.
Thank you.
