GithubHelp home page GithubHelp logo

isabella232 / launch-whatsapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from surveycto/launch-whatsapp

0.0 0.0 0.0 128 KB

Launch WhatsApp using pre-populated info from your form.

License: Apache License 2.0

JavaScript 40.94% CSS 19.87% HTML 39.19%

launch-whatsapp's Introduction

Launch WhatsApp

Screenshot

Description

This plugin allows you to launch WhatsApp using pre-populated info from your form. You can provide a phone number, a message, or both.

Download now

Data format

This field plug-in requires the text field type.

When the green button is pressed, the WhatsApp message information is stored in the field’s response in the following format:

WhatsApp: name=name; number=number; message="message"

Please note: this message will be saved when the user clicks the green button. There is no way to verify whether or not WhatsApp was actually launched, a call was made, or a message was sent. Only the parameters that were supplied to the field plug-in will be recorded.

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-whatsapp.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 (optional) The destination phone number (the full phone number in international format, without leading zeroes). This phone number does not need to be in the caller's contact list, but it does need to be a valid WhatsApp number (i.e., the phone number must be registered to a WhatsApp account).
name (optional) The name of the recipient. If supplied, this will be shown in the preview instead of the phone number.
message (optional) The body of the text message.
button_label (optional) If you want to override the default button label, "Launch WhatsApp", you can supply your own label with the button_label parameter.

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

More resources

launch-whatsapp's People

Contributors

cking0987 avatar theomnimax 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.