Select to view content in your preferred language

Esri-Tasks Embeddable Control Checking mandatory fields

411
1
07-18-2023 04:39 AM
tarekgalal
New Contributor

I have made an embeddable control and added it to an Esri task, I need to prevent the user from stepping into the next step without filling in the required fields.

Capture.PNG

0 Kudos
1 Reply
NarelleChedzey
Esri Contributor

Hi, 

You can override the CanCommit function on EmbeddableControl to return false when your fields have not been filled in. And true when your control is correct. 

When a step cannot proceed, Tasks will show an error message at the bottom of the dockpane indicating that the step is not enabled or that there is an error.  You cannot modify or configure this built in message, so you may consider adding a more specific message to your embeddable control that indicates what the error is. 

Narelle

0 Kudos