Show answerHide answer
Correct answer: A, D Use the regex property on the widget.Supply an inputMask property to the widget to enforce the format.
Explanation
Answer Option (Which option is correct) A. Use the regex property on the widget.Answer Option (Which option is correct) D. Supply an inputMask property to the widget to enforce the format.
Explanation:
Field-level validation is appropriate for checking the format of an individual input. A regex tests the entered value and an input mask guides its structure. Validation differs from populating related fields, converting input, or performing unrelated business updates.
Verification note: The exact option selection could not be independently verified from accessible official documentation. Relevant official topic links are provided, but some exact configuration or training rules require the product Configuration Guide or Cloud Standards behind sign-in. The source key is retained.
Why the other options are incorrect:
B. Perform validation in a Gosu Pre-Update rule:
A Pre-Update rule runs within the save lifecycle. The requirement asks for immediate field-format feedback. A widget-level format check is more direct.
C. Configure the errorMessage property on the widget:
An errorMessage supplies feedback text. It does not by itself define the valid pattern. A validation mechanism must decide when that message applies.
E. Configure an inputConversion property to reformat the input:
Input conversion transforms a value. It does not necessarily reject invalid Tax IDs. Formatting and validation serve different purposes.
References:
Guidewire product documentation - Configuration Guide access