Skip to Content
avatar image
Former Member

Best practice dialog with input field validation

HI,

I need to create Dialog with 10 fields and this dialog have button for save.

what I want is then when the user click on save validate the fields and fields which are not valid should be mark as red.

My question what is the best practice for develop this in UI5?

How can I handle the event to change the state ?

How should I get from the dialog button "save" all the fields input ?

Any example/ fiddle will be very helpful

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 02, 2017 at 05:44 PM

    First, avoid pop ups.

    If the form with multiple fields, validate and display error by setting the error state of the input fields - this makes the border of the fields RED.

    Use a message control in the footer to display multiple error messages in a group.

    Check this link: https://experience.sap.com/fiori-design-web/input-field/

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 03, 2017 at 07:47 AM

    HI All,

    Any idea how can I do it right?

    Thanks,

    Jenny

    Add comment
    10|10000 characters needed characters exceeded