Skip to Content

How to Use format Rule in mobile development kit

Hi Everyone,

Can we use format rule for checking the format on form page field ?

If anyone enter dot(.) then it should not save.

Anyone can tell me How can we use format rule in mdk.

Thanks

neha

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 11 at 08:54 AM

    FormatRule is mainly for formatting the control's value, for example, if you enter value abcd for a simple property control, you can have a rule to format this value to ABCD (toUpperCase).

    If you want to do validation before saving the inputs, you can use ValidationRule property of the OData action.

    Example: https://developers.sap.com/tutorials/cp-mobile-dev-kit-add-validation.html

    Add a comment
    10|10000 characters needed characters exceeded