This content has been marked as final. Show 1 reply
not sure about dynamic restricted list in rules but you can achieve your requirent in many ways...
for description lets assume
2 roles IT and HR
2 metadata xApprover and xReviewer
create 2 new rules
- add xReviewer and xApprover fields and set the restricted list for IT team.
- In General Tab, check the "User rule activation condition" and in custom tab use the following code
- add fields and define restricted list ...go to custom tab and add
finally, add the above rules to yoru profile.
another option ...
define idoc include as
Go to your Profile Rule and Edit the fields(xApprover,xReviewer)
<@dynamichtml myCustomInclude@> <$if not isUploadFieldScript$> <$if userHasRole("HR")$> <select name="xApprover"> <option value="Ap1">Ap1</option> .. .. </select> <select name="xReviewer"> <option value="Re1">Re1</option> .. .. </select> <$elseif userHasRole("IT")$> .. .. .. <$endif$> <$endif$> <@end@>
...in "Edit Rule Field xApprover" window, select "Use custom include" and enter the above include name "myCustomInclude"
if you need any field validation, put it in else block of isUploadFieldScript
Edited by: Bunty on Apr 3, 2013 11:32 AM