Changes

Remove Options from a Combo Box Using JavaScript

542 bytes added, 23:46, 28 October 2009
no edit summary
</pre>
 
 
If you wish to control this by role (for example if you want a role to be able to view existing Level 2 ''FirstType'' Type records, but not create them...
Include this in the variable section at the top of the script:
var myrolelist="@me.rolelist@";
 
And replace or include the following in the if logic section:
if (myrolelist.indexOf(",1234,")>=0)
 
::''Note that you must test for greater than or equal to 0. If the role is the first on listed in the users role list it will return a 0 rather than a 1 because of the preceding comma.''
0
edits