Coder Social home page Coder Social logo

launch-sms's Introduction

Launch SMS

Screenshot

Description

This plug-in will launch and populate the default SMS app on your device. It receives a phone number and a message as parameters, and provides a button to launch your SMS app (pre-filling the number and message from the parameters). The user must tap on the "send" button in the SMS app to send the message.

Download now

Data format

This field plug-in requires the text field type.

A record of the attempts to launch the SMS app are stored as the field's response in the following format:

  • If the SMS app was successfully launched*, the response will be:

    SMS created. Recipient: number. Message: "message".

  • If there was an error, the response will be:

    There was an error creating the SMS: error

Please note:

  • A "success" message on Android does not mean an SMS was sent. This means only that the field plug-in successfully launched and populated the SMS app.
  • If you're using this field plug-in on iOS or web forms, then simply clicking the Send SMS button is considered a success (error callback is Android-only).

How to use

Getting started

  1. Download the test form extras/test-form from this repo and upload it to your SurveyCTO server.
  2. Download the launch-sms.fieldplugin.zip file from this repo, and attach it to the test form on your SurveyCTO server.
  3. Make sure to provide the correct parameters (see below).

Parameters

Key Value
number The phone number to which the SMS should be sent.
message The body of the text message.
button_label (optional) The label of the button. If no button_label parameter is specified, the button will be labeled "Send SMS".

*Note: it is suggested to use values stored in other fields for the parameters. Take a look at the test form to see how this is accomplished.

More resources

launch-sms's People

Contributors

cking0987 avatar wallace-df avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.