Confiform restrict visibility to form admins

Dane Schofield
Contributor
February 11, 2025

I need to define a list of form admins in one place that I can use to reference in multiple other areas, because I do not have the proper authority to create a "group."

In my form, which page viewers can use to register, I have added users under the "additional form admins" section. Then, for any field, when I try to restrict the "visibility to groups/users" using [entry.additionalFormAdmins], it does not work and regular viewers are able to view every field.

Should this work? Is my syntax incorrect? Is there a different way to approach this same issue?

Let me know if I need to provide more information.

 

Also, for future reference, are there any good resources that provide thorough resources and examples? I'm constantly running into issues with syntax or just a general lack of context/understanding when I'm reading through the vertuna wiki on confiforms. It seems that most people here with similar issues to me have a better foundation of knowledge and don't share the exact context/syntax that I'm desperately looking for.

2 answers

1 accepted

3 votes
Answer accepted
Dane Schofield
Contributor
February 12, 2025

So to answer my own question, no. That is not how 'additionalFormAdmins' is used.

Sounds like there will be an update on an upcoming version that you could use to create a list of users within the "page properties."

 

For now, sounds like this is the solution:

Create a second form on the same or new page (adminForm) with Field Definitions for a "User (multiselect)" type (AFUsers) and a "Text" type (AFGroup).

Register an entry with user(s) and assign a group name (myGroup).

On the ORIGINAL Form, open the Field Definition(s) that need to be hidden, and under "Visible only to groups/users," enter the following: [entry.id.queryAndSet(adminForm:<pageID of adminForm>;AFGroup:myGroup;AFUsers.asList)]

If needed, use a Rule for Field Definition to hide the fields in the Form Registration. Such as Condition: id:[empty] and check "With reverse rule"

Also worth noting, if the "adminForm" is empty, the fields will be visible to everyone.

 

Thank you, of course, to @Alex Medved _ConfiForms_ for finding this solution!

 

Some helpful resources in regards to the above:

https://wiki.vertuna.com/display/CONFIFORMS/Confluence+page+permissions+and+ConfiForms

https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 13, 2025

Yes, this is one of the possible solutions

Other ones will be

  • using page properties to define user's in a virtual group (also coming soon the possibility to reference a page properties from another page)
  • using smart field to "adminForm" (using Dane's design) and using that smart field in the very same "Visible only to groups/users" parameter. Something like [entry.mysmartfield.AFUsers.asList]. Which basically means we can manage the restrictions through this smart field
0 votes
Tomislav Tobijas _Koios_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2025

Hi @Dane Schofield ,

I'm not using ConfiForms so I can't be much of a help here. But, if you don't receive an answer from the community related to your question, you can try to submit a ticket directly to a vendor via their support form.

Vendors are usually quite responsive and willing to help with any issues end users might experience.

Cheers,
Tobi

Dane Schofield
Contributor
February 12, 2025

Just submitted a form there as well. Thank you! I'll update here if I get a resolution.

Like # people like this
Tomislav Tobijas _Koios_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2025

@Dane Schofield great! And...

...I'll update here if I get a resolution...

> please do! It might help others if they stumble on this question.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events