Hi guys, is it possible to set options in the IS_IN_SET() validator as links to pages with more links related to the ones in the validator?
I have a table that registers students, the requirements for the app are that all progams should be available for selection in the form field of Program_of_Study in a dropdown format, the problem is that they are too many, waaay too many to be listed in a dropdown, so I was wondering if i could have levels (Certificate, Diploma, Degeree, Masters, PhD) in the IS_IN_SET() validator but as links & when someone selects Diploma it re-directs them to a page of Diploma programs allowing them to select the program they want by clicking on it & then getting redirected back again to the form to complete the form, something like below
Code Example in the MODEL
db.define_table('links',
Field('name', requires=IS_IN_SET([('certificate', _href=URL('default', 'certificate_programs')), ('diploma', _href=URL('default', 'diploma_programs')), ('degree', _href=URL('default', 'degree_programs'))], zero='---Select Level of Study---')))
If the above is not possible at all whats an alternative to solving my challenge (With examples please ☺)
Regards;
Mostwanted