User Tools

Site Tools


dynamic_links

This is an old revision of the document!


Dynamic links allow you to send emails to users which include information contained in the form (eg the applicant's name) as well as an encrypted URL allowing them to provide information back to CuForms. Because the link includes an encrypted token, only the person receiving the email can use the link.

Examples:

Simple field substitution

[First Names]

This does a simple substitution with the field in the form that has a matching description

[ENCRYPTED_EMAIL?url=https://cuforms.org.uk/runform.php?article_id=534&source_article_form_id=[FIELD?name=Ref]&validfor=2&htmltype=html5&source_article_form_admin_audit_id=[FIELD?name=AuditRef]&make_pdf=true&link=Simply follow this link]

This generates the following link (where the current form Ref is 17309:

<a href=https://cuforms.org.uk/runform.php?article_id=534&email=geof.ellingham@yhn.org.uk&source_article_form_id=17309&validfor=2&htmltype=html5&source_article_form_admin_audit_id=114456&make_pdf=true&key=380d4763660a24d98239f97f6c783c571c74cb778426fad60c31076225a87bd5>Simply follow this link</a>

This URL will open Form ID 534 and attempt to populate it from the data already stored in the Form Ref 17309, matching column names where possible. The following special key-value pair is available:
validfor=2 - number of days the email remains valid - after this time, the email will produce an error message

[FIELD?name=Ref] substitutes a field from the source form - in addition to Ref, AuditRef is also available, which is the current entry in the audit table. If AuditRef is set, the form will generate an error if the source data is changed, thereby creating a new audit record

make_pdf=true - if this is set, the new form will generate a PDF and email it to the customer - particular relevant for credit agreements.

Client information substitution

If you are using multi-client features, you can include client-specific information in your emails by using [CLIENTVALUE:field] (eg [CLIENTVALUE:phone] would be replaced by the phone number of the client organisation).

dynamic_links.1449919299.txt.gz · Last modified: 2017/02/20 16:49 (external edit)