How to manipulate the property "Show as Warning"?

1 week ago 17
ARTICLE AD BOX

I am using FormIO version 6.14.

In the "Select Component", under the "Validation" tab, in the "Custom Validation" (JavaScript) section, I see a property called Show as Warning.

How can I change this property (Show as Warning) from false to true or from true to false within the JavaScript section?

Select Component has 3 possible selection values: A, B and C.

When A is selected, an error message should be displayed: valid = "You have selected A."

When B is selected, a warning message should be displayed: valid = "You have selected B."

When C is selected, an error message should be displayed: valid = "You have selected C."

When no value is selected, no messages should be displayed: valid = ""

enter image description here

enter image description here

Read Entire Article