Expand my Community achievements bar.

SOLVED

customise pop-up message

Avatar

Level 1

error.png

So, i was told to add 2 new fields as product and subproduct and values of subproduct field must be visible according to selection in product field and that too i got through (reset xpath) but now can i somehow change/customize this popped-up error according to my wish. if there is anything you know then do help me out. thanks, in advance!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @him2 ,

You can utilize <check> <error> tags for customized error popup

<input xpath="@email" required="true"/>
<leave>
  <check expr="@email!=''">
    <error>The email address is required.</error>
  </check>
</leave>

The above script will throw error popup on input form, if Email ID is empty.

 

Similar way, you can make expression in <check> based on your requirement with product and sub-product, and can customize the error popup.

For more details on this, Refer this document

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @him2 ,

You can utilize <check> <error> tags for customized error popup

<input xpath="@email" required="true"/>
<leave>
  <check expr="@email!=''">
    <error>The email address is required.</error>
  </check>
</leave>

The above script will throw error popup on input form, if Email ID is empty.

 

Similar way, you can make expression in <check> based on your requirement with product and sub-product, and can customize the error popup.

For more details on this, Refer this document