You are viewing limited content. For full access, please sign in.

Question

Question

How to hide the form fields based on multiple user initiate the process?

asked on July 13, 2016

In my scenario,five users from different group can initiate the process with one form assigned.For example,if an user from Group A initiate the process with a form,he can assign to other four users from different groups(B,C,D,E) by selecting the drop down fields in the form,if an user from Group B initiate the process,he can assign other three groups(C,D,E),if an user from Group C initiate the process,he can assign other two groups(D,E),this is how my workflow works.but my question is ,can we hide the field based on the user's login?if Group B user initiate the process,Group A user's drop down field should not be shown.if Group C user initiate the process,Group A,B users drop down fields should not be shown.for this i don't want to use multiple forms to initiate because its all done with one process.Hope you understood my scenario.

Any suggestion would be appreciated.Thanks

1 0

Replies

replied on July 13, 2016

Is the group each user belong to stored in a SQL database or anything that Forms could pull from? If not, you would need to hardcode the rules for each individual.

This can be done using field rules and some an additional field. Add a field (single line) to the form and hide it using a CSS style like so .dontshow {display: none;} then assign the dontshow class to the field. have the default value of the field be the variable currentuser (choose from the arrow in Forms). Now in the field rules you would need to create the rules that govern which drop down fields are viewable when. If you have all the users and the group they belong to in a database, you could add a second field with the group name that gets populated based on the current user variable. Then in your field rules, you could simply look at what group the user is in and hide the correct drop down fields. If you don't have that information in a database, you will need to make rules for each person and what drop down fields need to be hidden.

I hope that helps.

0 0
replied on July 20, 2016

Hi,I am not sure that i can achieve this by applying field rules in my scenario,because in form i have added five drop down controls.In each drop down i have loaded list of users from each group.i have defined five groups in database and based on each group users will be loaded.so i cannot find in which group the user belong to when the form gets loaded initially,so how could i write the condition rule by using field rule which never check with database value?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.