Page tree

Versions Compared

Key

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

Simple tutorial on how to use ConfiForms Field Definition Rules#Showfield and it's counterpart ConfiForms Field Definition Rules#Hidefield ConfiForms Rules for Field Definitions to show and hide fields conditionally

Consider a form that has few fields like this

ConfiForms Form Definition
formNamemyform

Field1Field1text

showDetailsLet me provide some detailscheckbox 

detailsDetailstextarea

optionsChoose an optionfalse[1=Option 1|2=Option 2|3=Option 3|4=Let me provide my option|]select 

userOptionMy optiontext


// this rule will hide the "details" field when a checkbox field "showDetails" is unchecked and will show the "details" field otherwise

showDetails:falsedetailsHide fieldshowDetailstrue

// this rule shows an extra field when you select an "other" option in the "options" dropdown field (and hides it otherwise)

options:4userOptionShow fieldoptionstrue


ConfiForms (FormView) Registrations Control
hideMetadatatrue
formNamemyform
typeEmbedded