-1

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

New contributor
Ričardas Olikaiskas is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • Please do not upload images of code/data/errors. - If you add the code as text into the question please notice that StackOverlow is an English-only website, it would be beneficial to translate the comments in the code as well. Commented 2 days ago
  • Please edit your question to convert images into text, and use a code block for any code you have. Readers can then search the text or run the code to reproduce your issue. Commented 9 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.