Upload with required atribute


#1

Hi
I’m using DHTMLXForm with upload. Is any way of making it required?


#2

You can use onBeforeSave event of form
docs.dhtmlx.com/api__dhtmlxform … event.html

From this event handler, you can check the current value of form ( getFormData ) and based on it show some message and deny the form saving ( return false )


#3

Perfect!
Thanks