Hiding certain form details to particular user

74 Views Asked by At

Can i design my form in such a way that can hide certain details to particular user?or visible only to reviewer side and not visible for client user

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, it is possible to hide certain fields from a particular category of members. In the open-source project of formsflow.ai, they are giving 2 sample forms FOI and New business Licence in that itself they are using this feature. In that, the reviewer section of the FOI form is available only at the reviewer side and I will attach the code for the same here Reference

const UserDetails = JSON.parse(localStorage.getItem("UserDetails"))
const groups = UserDetails["groups"]

if(groups.includes("/formsflow/formsflow-reviewer") && data.applicationStatus==="New") {
  show = true;
}
else {
show = false;
}

Also, you can design the form as per your requirements by giving conditions while designing the form