clear_block v/s required fields validation behaviour [message #376619] |
Thu, 18 December 2008 01:02 |
|
didiera
Messages: 134 Registered: August 2007 Location: Mauritius
|
Senior Member |
|
|
Hello I need a confirmation from you. I have a form with a bunch of required fields (required property set to true on the property palette). On the same form, I tried implementing a 'cancel' button that would abort any attempt to change a record and it also has to work the same for new records i.e if I were typing values for a new record, clicking on 'cancel' would remove that record. However, I have some trouble with the required fields whose validation behaviour triggers at once and prevents me from doing my clear_block(no_validate) - I have tried a number of flavours of clear_block, clear_form etc but all fail to override that validation thing. My last resort now, in the code for the cancel button, is to supply some dummy values in the empty fields....it kinda works but is awkward to me... do you know of any graceous way of implementing this?
best regards,
Didz
|
|
|
|
|
|