Skip to main content

i4w_survey

Usage

With this shortcode, the HTML code for a simple survey can be generated, consisting of a survey question and any number of possible answers.

Answers can be single (radio buttons) or multiple (checkboxes).

For any given answer, one or more actionsets can be run, as well as tag and follow-up sequences assigned.

Finally, the responses can be optionally stored in a custom field in your Keap application.

[ELSE_survey] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

Inline Parameters

ParameterDescriptionDefaultRequired
svy_typeEither 'radio' or 'checkbox', to indicate single or multiple responses.radioNo
svy_btnText to appear on the submit button.SubmitNo
customfieldDefines the name of the Keap custom field in which the response(s) will be stored.NoneYes
redirDefines the URL of the page to which the user should be redirected after completing the survey. In order to reload the page and NOT display the "aftertext" message, use "#reload#" as the redir value.NoneNo
aftertextMessage to display upon completion of the survey form.Thank you for completing this survey.No
requiredSpecifies whether the survey must be completed or not.NoNo
required_msgText to appear above the survey when it wasn't completed although "required".In order to proceed, this survey must first be completed.No

Embedded Parameters

ParameterDescriptionDefaultRequired
svy_questionDefines the survey question to be asked.NoneYes
svy_answerXDefines a possible answer to the survey question, whereas "X" is the number associated with the answer.NoneYes (at least one)
svy_actionXDefines actions to be applied when an answer is selected. The "X" associates the actions with an answer. Possible actions are "actionsets" and assignment of "tags". An actionset is defined as Ann, where "nn" is the actionset ID. Tags are assigned using "Tnn" where "nn" is the tag ID. If a tag should be removed instead of assigned, the "T" should be preceded by a minus sign '-'. Follow-up sequences are identified as "Fnn" to add, or "-Fnn" to remove.NoneNo

Example

Shortcode
[i4w_survey svy_type='checkbox' redir='#reload#']
svy_question:What does Keap do best for you?
svy_answer1:Helps me automate my business
svy_answer2:Gives me more free time
svy_answer3:Makes me more money
svy_action1:A24,T17,F11
svy_action2:A26,T19,F13
svy_action3:A28,T21,F15
[/i4w_survey]
Shortcode
[i4w_survey svy_type='checkbox' redir='http://disney.com']
svy_question:What does Keap do best for you?
svy_answer1:Helps me automate my business
svy_answer2:Gives me more free time
svy_action1:A24,T17,F11
svy_action2:A26,T19,F13
[/i4w_survey]

Notes

warning

Multiple questions may be asked within a survey. However, all answers must be numbered sequentially without regard to the question with which they are logically associated.