authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Text (read-only) fields, not required "may not be blank"

Open katrinm86 opened this issue 1 year ago • 0 comments

Describe the bug

Hi,

we have several fields in the settings that might not be set for all users (e.g. uid/gid).

We use a Text (read-only) field in both cases that is set to not be required. They have an initial value expression set that returns an empty string (if the value is not there) - so the placeholder will show in those cases.

Now if a user presses "Save" they get "This field may not be blank"

Image

Note: Maybe you can solve this like it is in Django with a separate settings "blank" that can be True or False ...

How to reproduce

  1. Create a prompt text field that is readonly and not required with initial value expression
  2. Add to user settings prompt; Make sure the attribute is empty on the user
  3. Try to save the settings

Expected behavior

Settings can be saved with an empty value since the value is not required.

Screenshots

No response

Additional context

No response

Deployment Method

Docker

Version

2028.8.4

Relevant log output


katrinm86 avatar Nov 18 '25 11:11 katrinm86