Print

How to use Showon in item form for a conditional display field

How to use Showon in item form for a conditional display field

  • Published by
    Yannick Berges
  • Last modified
    28 February 2024
  • Voting
    Average rating
    1 vote
  • Favourites
  • Concerns
    Component
  • Since Version
    4.X
  • Up to date
    Yes
  • Profile concerned
    Webdesigner, Developer

This article will explain how to create "conditional" display of field in item form of Flexicontent. With this feature you can create complexe item form with many field field display condition.

All fields can be display or hide

Only "selections fields" can manage condition : Select, Radio, Checkbox, Radio image, Checkbox image And select multiple

Important note

  1. you need to disable  JS library
  2. don't use defaut value

After this you can start to creat a conditionnal form. In fact its very simple we add a "ShowON" params in any field and simply add good syntax

And condition : fieldnameA:value[AND]fieldnameB:value
Or condition : fieldnameA:value[OR]fieldnameB:value
X value in same field : fieldnameA:value,value2
Does not equal : fieldnameA!:value

Where fieldname is the name of field (not his label) and value is the value to check (not label of value)

Like here

The result on a little video :

 

Conditional form item in Flexicontent demo

Author yannick berges
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline