...
Code Block |
---|
fields: isBarbarian: fieldType: checkbox type: Boolean isElf fieldType: checkbox type: Boolean barbarianElfHatType: fieldType: text enabled: ( isBarbarian & isElf ) description: What type of hat is your elven barbarian wearing? |
Dynamically Visible
A field is only visible on a form, if the "visible" expression evaluates to true.
...
Code Block |
---|
fields: clericSpells: fieldType: text validators: onlyClericOrWizard: class: info....ExpressionValidator expression: (!(clericSpells!="" & wizardSpells!="")) errorMessage: Only Cleric OR Wizard spells allowed, not both. |
Dynamic Label & Dynamic Button Labels
...
Options list is empty until the "optionModelArguments" fields have values.
Code Block |
---|
fields: heroType: fieldType: select options: - wizard - cleric - fighter - thief level: fieldType: select options: - 1 - 2 - 3 - 4 spells: fieldType: dynamicSelect optionModelArguments - heroType - level optionModel: org.dandelion......AvailableSpells description: Choose from your available spells, after choosing your heroType and level. |
Another example:
Code Block |
---|
fields:
country:
fieldType: select
path: /
repository: countries
state:
fieldType: dynamicSelect
optionModelArguments
- country #references 'country' field.
optionModel: org.dandelion......StatesPerCountry
postalCode:
fieldType: dynamicSelect
optionModelArguments
- state #references 'state' field.
optionModel: org.dandelion......PostalCodesPerState |
Node Chooser
Out-of-the-box fields based on a heirarchy of nodes. (Probably JCR bound.)
...
Code Block |
---|
fields: ecommerceSystem: fieldType: select options: - elasticPath - shopify category: fieldType: dynamicRESTSelect datasource: $type: jsonDatasource restClient: (ecommerceSystem) #dynamic based on value in 'ecommerceSystem' field. restCall: categories assets: fieldType: dynamicRESTLink datasource: $type: jsonDatasource restClient: (ecommerceSystem) #dynamic based on value in 'ecommerceSystem' field. restCall: products restCallParameters: - category: (category) #dynamic based on value in 'category' field. |
Java Improvements
In addition to the above improvements, we want to make it easier to implement sophisticated use cases in Java.
...