Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Summary

Excerpt

Show a message “This is approved!” when a checkbox (Id: legallyApproved) on a Layer (Id: corporateInformation) is checked.

Code Block
languagejson
{% if data.corporateInformation.legallyApproved == true %} This was approved! {% endif %}

...

Goal

Show a message based on the checkbox value e.g. show “This is approved!” when the checkbox is checked.  

 

Setup in Picturepark

  • Layer "Corporate Information"

  • Checkbox "Legally approved"

Field Value Access

data.corporateInformation.legallyApproved

Use Case

A use case for the Checkbox would be to apply some task or advice by using Liquid tags like an if condition and display a message for the true or false case e.g. when approved show “It is approved!”

...