Conditional HTML Message With Salesforce Record PreFill

In this guide, we will explain how to display Conditional HTML Message. We will display HTML messages if the record is found or not.

Drag and drop a Text, a Salesforce Prefill, a Hidden and an HTML field. Rename the fields as shown below.

image

Click the pencil icon of the Salesforce Prefill field. Set Object, Formyoula Parent Field and Salesforce Parent Field as shown below.

image

Map Hidden field (Found Account Name) with Object Field. Save the changes.

image

Click the pencil icon of the HTML field. Paste the code.

image

Please use the code below:

<div class="entry">
  {{#if 7875-83dc-8b81}}
    <h3>{{7875-83dc-8b81}}</h3>
  {{else}}
    <h3>Missing Account</h3>
  {{/if}}
</div>

Please change the field ID according to your form.

image

Enable the following 2 options on the HTML field. Save the changes.

image

Try the form.

HTML message if the record found:

image

HTML message if the record not found:

image

For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂

Example Form.json4.4KB