2017-08-15 02:29:39 +02:00
|
|
|
SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField:
|
2017-04-28 00:22:15 +02:00
|
|
|
countryDropdown:
|
|
|
|
Name: CountrySelection
|
|
|
|
Title: "Choose your country"
|
|
|
|
DisplayRulesConjunction: And
|
|
|
|
ShowOnLoad: false
|
2017-08-15 02:29:39 +02:00
|
|
|
|
|
|
|
SilverStripe\UserForms\Model\EditableFormField\EditableTextField:
|
2017-04-28 00:22:15 +02:00
|
|
|
irdNumberField:
|
|
|
|
Name: IRDNumber
|
|
|
|
Title: "Enter your IRD Number"
|
|
|
|
countryTextField:
|
|
|
|
Name: CountryTextSelection
|
|
|
|
Title: "Enter your country (2 digit prefix)"
|
|
|
|
DisplayRulesConjunction: And
|
|
|
|
ShowOnLoad: false
|
2017-08-15 02:29:39 +02:00
|
|
|
|
2017-08-11 02:20:12 +02:00
|
|
|
SilverStripe\UserForms\Model\EditableCustomRule:
|
2017-04-28 00:22:15 +02:00
|
|
|
rule1:
|
|
|
|
Display: Show
|
|
|
|
ConditionOption: HasValue
|
|
|
|
FieldValue: NZ
|
2017-08-15 02:29:39 +02:00
|
|
|
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField.countryDropdown
|
|
|
|
Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
|
2017-04-28 00:22:15 +02:00
|
|
|
rule2:
|
|
|
|
Display: Show
|
|
|
|
ConditionOption: ValueGreaterThan
|
|
|
|
FieldValue: 1
|
2017-08-15 02:29:39 +02:00
|
|
|
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.countryTextField
|
|
|
|
Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
|