Question

8
Replies
1100
Views
HemaA279 Member since 2012 7 posts
Virtusa
Posted: 4 years ago
Last activity: 4 years 7 months ago
Closed

Display Modal Dialog if there are no errors.

Hi,

We have requirement where on click of button - we need to validate if the mandatory fields are filled, if filled we need to show Modal dialog with msg & YES or no buttons. If the mandatory fields are not filled - we should not show the Modal dialog.

I referred the discussion Displaying modal dialog box on click of button after validating data entered by user under form fields & have tried this approach of including two buttons with visible condition. This is working fine but there is a issue in the date field.

First Save button

First Button without Local Action.JPG

Second button with Local action

Second Button with Local Action.JPG

If you update the date, & then remove the date without clicking outside of the cell, click directly on "Save" button. Am getting the second button action where I have configured Activity, Local action & my Local action is getting fired even when there are errors. Please advice a refresh has to happen when the user doesn't click outside the cell as well. If a refresh happens I will get my First button & the Local action will not be fired. Or is there any other better way other than this

Error Msg with Pop-up.JPG

User Interface
Moderation Team has archived post
Share this page LinkedIn