-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIO-9385 Preserve non-default widget settings after evaluating field …
…logic - originalComponent in Component.js did not capture non-default widget settings since they were added after component initialization - During field logic evaluation, the component was falling back to originalComponent and not preserving the widget settings - Update originalComponent after applying widget settings in TextField and DateTime to maintain them after field logic eval
- Loading branch information
1 parent
0d6767f
commit 0adf189
Showing
8 changed files
with
146 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
export default { | ||
components: [ | ||
{ | ||
"label": "dateTime", | ||
"displayInTimezone": "submission", | ||
"format": "MM/dd/yyyy:HH:mm:ss", | ||
"tableView": false, | ||
"datePicker": { | ||
"disableWeekends": false, | ||
"disableWeekdays": false | ||
}, | ||
"timePicker": { | ||
"showMeridian": false | ||
}, | ||
"enableMinDateInput": false, | ||
"enableMaxDateInput": false, | ||
"validateWhenHidden": false, | ||
"key": "dateTime", | ||
"logic": [ | ||
{ | ||
"name": "requiredLogic", | ||
"trigger": { | ||
"type": "javascript", | ||
"javascript": "result = true;" | ||
}, | ||
"actions": [ | ||
{ | ||
"name": "setRequired", | ||
"type": "property", | ||
"property": { | ||
"label": "Required", | ||
"value": "validate.required", | ||
"type": "boolean" | ||
}, | ||
"state": true | ||
} | ||
] | ||
} | ||
], | ||
"type": "datetime", | ||
"input": true, | ||
"widget": { | ||
"type": "calendar", | ||
"displayInTimezone": "submission", | ||
"locale": "en", | ||
"useLocaleSettings": false, | ||
"allowInput": true, | ||
"mode": "single", | ||
"enableTime": true, | ||
"noCalendar": false, | ||
"format": "MM/dd/yyyy:HH:mm:ss", | ||
"hourIncrement": 1, | ||
"minuteIncrement": 1, | ||
"time_24hr": true, | ||
"minDate": null, | ||
"disableWeekends": false, | ||
"disableWeekdays": false, | ||
"maxDate": null | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
export default { | ||
components: [ | ||
{ | ||
"label": "Text Field", | ||
"widget": { | ||
"type": "calendar", | ||
"altInput": true, | ||
"allowInput": true, | ||
"clickOpens": true, | ||
"enableDate": true, | ||
"enableTime": true, | ||
"mode": "single", | ||
"noCalendar": false, | ||
"format": "MM/dd/yyyy:HH:mm:ss", | ||
"dateFormat": "MM/dd/yyyy:HH:mm:ss", | ||
"useLocaleSettings": false, | ||
"hourIncrement": 1, | ||
"minuteIncrement": 5, | ||
"time_24hr": false, | ||
"saveAs": "text", | ||
"displayInTimezone": "viewer", | ||
"locale": "en" | ||
}, | ||
"applyMaskOn": "change", | ||
"tableView": true, | ||
"validateWhenHidden": false, | ||
"key": "textField", | ||
"logic": [ | ||
{ | ||
"name": "requiredLogic", | ||
"trigger": { | ||
"type": "javascript", | ||
"javascript": "result = true;" | ||
}, | ||
"actions": [ | ||
{ | ||
"name": "setRequired", | ||
"type": "property", | ||
"property": { | ||
"label": "Required", | ||
"value": "validate.required", | ||
"type": "boolean" | ||
}, | ||
"state": true | ||
} | ||
] | ||
} | ||
], | ||
"type": "textfield", | ||
"input": true | ||
} | ||
] | ||
} |