Send SMS with FlowScript

Compatibility:IdSurvey 6IdSurvey 7
X

With IdSurvey 7 you can send SMS to a mobile number in any part of the questionnaire.

Note

  • In order to do that you have to be sure that the mobile number includes the international prefix and that you have purchased SMS credit for IdSurvey.

With FlowScript you can add an instruction to send a SMS in any part of the questionnaire.

In order to do that, you will have to write a FlowScript with the following structure.

sendsms('from', 'to', 'message');

The function writes “success” if the SMS was correctly sent or an error if licenses are missing or the SMS wasn’t sent.

In order to add a FlowScript click on the settings of the page and enable the switch “FlowScript”.

The FlowScript will be processed during the saving of the page.

Notes

  • Possible apostrophe contained in the sms has to be written as /’
  • You can use contact fields in the SMS or use the mobile number saved in “Mobile” for the recipient

Example

I want to send an sms to the respondent when he completes the interviews.

{result} = sendsms('IdWeb', '+391234567', 'Yay! You completed the questionnaire');