i4w_uploadfile
Usage
This shortcode provides a simple mechanism for a subscriber to upload a file to his/her filebox in Keap and run event-based actions based on the outcome of the upload attempt.
Please note that these files, once uploaded, are not publicly available. They are available only to users (not contacts) within your Keap application.
[ELSE_uploadfile] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| failmessage | The message to display if the upload failed for any reason. | none | No |
| successmessage | The message to display if the upload succeeded. | none | No |
| uploadlabel | An optional label to display before the file selection input field. | none | No |
| submit_btn | Text to display in the submit button. | none | No |
Example
Basic usage:
Shortcode
[i4w_uploadfile]
With custom messages:
Shortcode
[i4w_uploadfile failmessage='The file could not be uploaded' successmessage='Great! The file was uploaded!']
With all options:
Shortcode
[i4w_uploadfile failmessage='The file could not be uploaded' successmessage='Great! The file was uploaded!' uploadlabel='File: ' submit_btn='Upload']
With event-based actions:
Shortcode
[i4w_uploadfile failmessage='The file could not be uploaded' successmessage='Great! The file was uploaded!' uploadlabel='File: ' submit_btn='Upload']
Display this text before the upload
[on_success]
[i4w_actionset actid='123' autorun='1']
[on_error]
[i4w_actionset actid='234' autorun='1']
[/i4w_uploadfile]