getHtml(id).settings.radioWarning( message )
Defines the error message that gets displayed if no radio button of an obligatory group is checked when calling warn. If you use %name% in the string it will be replaced with the element’s name.
Example:
[js highlight=”4″ try=”true”]newHtml(“intro”, “example_intro.html”)
.settings.checkboxWarning(“It is highly recommended that you check the ‘%name%’ box before continuing”)
.settings.inputWarning(“We would like you to type some text in these fields”)
.settings.radioWarning(“Please consider selecting an option for ‘%name%'”)
.print()
,
newButton(“I have completed the form”)
.print()
.wait()
.remove()
,
getHtml(“intro”)
.warn()
,
newButton(“Continue”)
.print()
.wait()[/js]
Will print the custom warning messages on any missing obligatory field after clicking “I have completed the form.”