Automatic Task creation on Form submission

When a Form is submitted, you can automatically create a new task in Upvise, using values input in the form.

To do this, enter the appropriate Javascript code in the Execute on Submit field in the Form template Properties.

Example:

var values = {};
values.duedate = F1;
values.name = F2;
values.contactid = F3;
values.owner = User.getName();
values.startdate = Date.now();
var id = Query.insert("Tasks.tasks", values);
App.alert("New Task Created!");
return 1;

Download and Import the sample to the Templates section of the Forms app in your web account:

Automatic Task Creation

Advertisements

2 thoughts on “Automatic Task creation on Form submission

  1. This feature is fantastic!
    Just a little question: is it possible to refer to the Id of the form being submitted?

    For example, I tried

    values.note = ‘Automatically created from form # ‘ + id;

    But this doesn’t work (id has no value).

    Thanks

    Marco

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s