'Hiding certain form details to particular user

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



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Helping_Mind