Question

i have table called "type" which contains data "family,individual" i want in some pages load individual only into type drop-down and in another pages load both

How can i do that??

Thanks in advance

Was it helpful?

Solution

Yes. You can set the default in the model:

db.yourtable.yourfield.requires=IS_IN_SET(('family','individual'))

In any action you can do

db.yourtable.yourfield.requires=IS_IN_SET(('family'))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top