Skip to main content

Send user form via email

Send a user form via email and wait for a response before continuing the Wrkflow.

Application

  • Wrkflow Tools

Inputs (what you have)

NameDescriptionData TypeRequired?Example
EmailEmail to send user form toEmailYesjohn@wrk.com
Email subjectSubject for the email containing the user formText(Short)Yes
Form contentHTML of the form data to present to the userText(Long)Yes
Wait time limitThe amount of time this action should wait for a response in hours. Note the maximum wait time is 7 days (in hours)Number with decimalsYes0.05
File attachmentFile to attach to the email being sentFileNomyPDF.pdf
Custom email messageCustom message to send within the user form email. If left blank the email message will default to the example.Text(Long)NoHi there,We need your response to complete the process. Please click the button below to fill out the required form.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Form responseJSON data from the form responseText (Long)No{"name":"John","gender":"male","interests":["coding"],"country":"ca"}

The Wrk Action gathers all input and select elements within the Form content and processes each element individually to build a structured JSON response.

Key Assignment:

Each input field should have a name attribute, which is used as the key in the form response. This requirement ensures that each field has a unique and consistent identifier.

Behaviour for Each Input Type:

  1. Radio Buttons:

    • Only the selected (checked) radio button in each group is included in the form response.
    <!-- Example HTML for Radio Buttons --><input type="radio" name="color" value="red" checked><input type="radio" name="color" value="blue">
    // Resulting JSON { "color": "red" }
  2. Checkboxes:

    • For checkboxes with the same name, all checked values are stored together in an array.
    <!-- Example HTML for Checkboxes --><input type="checkbox" name="hobbies" value="reading" checked><input type="checkbox" name="hobbies" value="sports" checked><input type="checkbox" name="hobbies" value="music">
    // Resulting JSON { "hobbies": ["reading", "sports"] }
  3. Other Input Types (e.g., Text, Select Dropdowns):

    • Each input’s value is stored in the form response under the key specified by the name.
    • Note textareas are not supported
    <!-- Example HTML for Text and Select Dropdown --><input type="text" name="username" value="John"> Canada USA
    // Resulting JSON { "username": "John", "country": "Canada"}

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.
No resultThis status is selected if the job has successfully completed but no result was produced.
Email invalidThis status is selected if email address provided is invalid.

Requirements

  • N/A