AnsweredAssumed Answered

Custom model validation on dashlet fields

Question asked by hats on Mar 19, 2019

Hi Devs,

 

I have been working on one custom dashlet having one dropdown and two date fields.

 

I am looking for a way to apply sugar standard JS model validation on these fields such as the required validation wherein if user hits submit button, fields should be highlighted in red with standard required field error prompt. Same goes with the date validation wherein if user enters "From Date" > "To Date", then give invalid date error prompt and highlight the fields.

 

Does anyone know how can we achieve this with fields in dashlet or if similar feature available anywhere in sugar for reference, please let me know.

 

Regards.

Hats

Outcomes