Skip to main content
Topic: Field Control Properties (Read 3230 times) previous topic - next topic

Field Control Properties

Please Help
I want to control the Validation Properties via client even ..This is what I mean



what I have done

Code: [Select]
  $('#Vb_akhir').prop('Required', false);
but doesn't Work ... The Submit button didn't worked until i input the value into form of Vb_akhir Field

what i suppose to do?

Re: Field Control Properties

Reply #1
set the required to false and then you can use js to set it to required or not.  Setting required to true, will throw errors as the server is also expecting that field, but if you make it not required, the server code will not be expecting that field.

 

Re: Field Control Properties

Reply #2
set the required to false and then you can use js to set it to required or not.  Setting required to true, will throw errors as the server is also expecting that field, but if you make it not required, the server code will not be expecting that field.
Ok Wilvin , I Would Try your sugestion. Anyway thanks