Skip to main content

User

Lets you add a user selection object to your form.

Object designer

fu_main

Object parameters

Double-click on the object to edit it. Object parameters dialog will pop up.

fu_info

Export object
If checked, user selector will export the complete user object. Otherwise, only the user ID will be returned.

Key
Use this field to define the unique name of a variable in the context. After validation of the form, you will find the resulting data in the context

if Export object is checked:

"user_selector": {
"id": 2,
"is_superuser": true,
"username": "admin",
"first_name": "",
"last_name": "",
"email": "admin@example.com",
"is_staff": true,
"is_active": true
}

if Export Object is not checked:

{
"user_selector": [
"69",
"66"
]
}

Access value
This field defines which value will be used to access the user between the ID, the username or the email. This also defines what value is stored in the context.

Displayed value
This field defines which user value will be displayed in the selection object between the ID, the username or the email.

Selection mode
Lets you choose if 1 or many users could be selected.

Groups
This will allow you to restrict users displayed to the one belonging to those groups

Users
Allow you to restrict users displayed to the list.