i have a date field in my form which is set as mandatory using property but only red line appears when i click any othedr place it does not show any error or warning message
*This post is locked for comments
i have a date field in my form which is set as mandatory using property but only red line appears when i click any othedr place it does not show any error or warning message
*This post is locked for comments
Finally resolved it was not due to custom code. I closed ax and then reopened it . it worked
You still have your custom code somewhere, just search it and remove it.
i removed code from validatewrite and only wrote the code in clicked method. I dont know why it is showing 2 errors
Yes. But shouldn't the second one go away if you remove your code from validateWrite, and instead only call your own validation when the button is clicked.
that is only the issue, when i enter some data in field and then clear it out . after that when i click on find it displays 2 error messages
1. the system's message [becoz the field is set mandatory]
2. the message i printed via code
Just set property Mandatory to true.
But what if i want the mandatory red line in that particular control??
Just remove all your old validations regarding this field and put your validation only in the button click.
getting another issue as the field is mandatory and if i fill the field with some value and then clear it and then click on find it displays 2 error messages
1. the system's message
2. the message i printed via code
thanks it worked
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156