How to restrict user picker choice to current logged-in user?

Ute Dagostino March 14, 2024

Hi,

I've got a registration form with field type user, that allows picking of all registered users.

I want to restrict picking of user exclusively to current logged-in user, who is completing the form to avoid registration for third user who isn't involved.

Can't omit user (as I know it is set per default per entry), cause of need to show picked user Name in a table view after registration.

Is there a possibility to restrict user to entry owner? 

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2024

Hi @Ute Dagostino 

This sounds like a form is built with ConfiForms, but there is no mentioning of it... could you please clarify what plugin do you use to built your form?

Alex

Ute Dagostino March 14, 2024

Hi Alex,

yes sorry

I've forgotten that. It's build with confiForms

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2024

OK, will add a tag then

As for the current user - this is handled for you by ConfiForms automatically in a "createdBy" field  and in your TableView just put a ConfiForms Field macro with a field name set to createdBy 

 

Like Ute Dagostino likes this
Ute Dagostino March 14, 2024

I've tried this already by using createdBy as rule to apply on user field, but it always says it doen't fits rule.

Doing it your way there's no need to define a createdBy field in the form? Right? I can delete user ConfiForms Field Definition and just add a ConfiForms Field createdBy to TableView?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2024

You are really overcomplicating it - it is all done for you. No need for rules, no need for extra field definitions...

Ute Dagostino March 14, 2024

Ok I'll try that.

Many thanks for your help!

It works as expected. THANKS!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events