Log in

View Full Version : Dynamically changing REQ_* inside a datamanager


merk
11-22-2005, 10:31 PM
I am writing my own DM, which i want to have certain fields required when other certain fields are set a certain way.

Is it possible to manipulate the $validfields array changing REQ_NO to REQ_YES depending on certain input into other fields?

I guess if it was i could use VF_METHOD and use verify_fieldname for the "requirement changing" field to modify the REQ's of other fields?

The other fields would probably have to have a verify as well which bombs out if the major field isnt set first (if !$this->setfields['majorfield'] -> error())

Is it worth bothering?