We have a requirement like on the selection of dropdown certain fields in the block should be hide and show. is it possible in Universal editor of EDS.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hello @Dyanamic
For Edge Delivery Blocks, UE allows to select different block options through dropdowns or select fields.
You can use the classes property or any other configurable field to toggle between layout or variant options.
By combining options in your block’s model.json, you can build logic into the rendering code (in JavaScript/CSS) to show or hide specific fields or block
elements :
- The block’s model can be configured with a select field whose value determines which sub-fields or areas are visible
- The rendering logic (in your block JS) can check the current value and add or remove fields
Hello @Dyanamic
For Edge Delivery Blocks, UE allows to select different block options through dropdowns or select fields.
You can use the classes property or any other configurable field to toggle between layout or variant options.
By combining options in your block’s model.json, you can build logic into the rendering code (in JavaScript/CSS) to show or hide specific fields or block
elements :
- The block’s model can be configured with a select field whose value determines which sub-fields or areas are visible
- The rendering logic (in your block JS) can check the current value and add or remove fields
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies