Add elements to a select field (links menu type) dinamically

Hello Guys:

I’m trying to create a form wish adds or removes options from a select (link meny type) dinamically depending on the type of user. do you gusy have any idea about how that can be done?.

Regards

Yes, you need to make your sql dynamic by using a variable like:

where myarg = [myarg_from_an_event];

In general you can generate the autoselect, but you are allowed to change the generated sql statement to your needs.

So the only way is by using an SQL statement?

Regards

Most of SC is database driven. Select fields can be loaded by calling applications, but I never used that. But you can always generate your own field by using javascript as an escape.

Thank you again Albert:

Tho, i think a good addition to scriptcase would be a macro to add or remove elements from a manual select, such as dropdownlist or checkbox, dinamically.

Don’t you think?.

Regards