Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bonita Open Solution 5.x Essentials

You're reading from  Bonita Open Solution 5.x Essentials

Product type Book
Published in Nov 2013
Publisher Packt
ISBN-13 9781782167082
Pages 144 pages
Edition 1st Edition
Languages
Author (1):
Rohit Bhat Rohit Bhat
Profile icon Rohit Bhat

Table of Contents (15) Chapters

Conditional appearance of fields


We did explore the option of the conditional appearance of fields in the last chapter while defining the passenger information in the Payment step. For most of the widgets, there is an option to insert the widget in the form only if a particular condition is satisfied. If not, the widget isn't inserted in the form at all. This is different from inserting the widget and hiding it using JavaScript or some other script. Here, the widget isn't inserted into the form at all. Click on the Options tab of any widget and tick the check box for Insert widget if and in the expression box we can either enter a Boolean variable or write a Groovy script that returns true or false. As expected, the widget is inserted only if the expression evaluates to true. Note that we cannot use any field value of other widgets present on the form in the Groovy script. We have to use pool variables or step variables or some other Groovy condition. Let us write a Groovy expression that...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}