Is there any option in custom fields to make them read only in the form

Added by Sanooj M 4 months ago

I have some custom fields in issue creation form which are having pre-filled data and I don't want anyone to change them.

Actually it should show like a disabled input field with default value. My intention is to inform the user , this is the value of this field but don't want to allow them to edit that value. Is there any option for that in any version of redmine ?

Please help me

Replies (7)

RE: Is there any option in custom fields to make them read only in the form - Added by akshay khanna 4 months ago

Sanooj M wrote:

I have some custom fields in issue creation form which are having pre-filled data and I don't want anyone to change them.
Actually it should show like a disabled input field with default best washing machine value. My intention is to inform the user , this is the value of this field but don't want to allow them to edit that value. Is there any option for that in any version of redmine ?

Please help me

Hello forum admin I also have this issue please help me also

RE: Is there any option in custom fields to make them read only in the form - Added by Wisnu Widiarta 3 months ago

Yes, I'm having the same issue as well.

I'm importing issues with n fields, and some of them need to be read only.

RE: Is there any option in custom fields to make them read only in the form - Added by Bernhard Rohloff 3 months ago

You can set the permissions (read-only, required) of a field in the workflow settings in the administrator section.

permissions.png (24.5 KB)

RE: Is there any option in custom fields to make them read only in the form - Added by Sanooj M 3 months ago

@Bernhard Rohloff - This is only for defining the custom field's attribute in the application among internal users. This read-only is not applicable in HTML form.

RE: Is there any option in custom fields to make them read only in the form - Added by Bernhard Rohloff 3 months ago

Sanooj M wrote:

@Bernhard Rohloff - This is only for defining the custom field's attribute in the application among internal users. This read-only is not applicable in HTML form.

The field doesn't show up in the form because you must not change it in the current state.
If you mean it to be read-only as a kind of a plain text for a hint or other information in the form than, to my knowledge, there isn't any solution for that, yet.

RE: Is there any option in custom fields to make them read only in the form - Added by Sanooj M 3 months ago

Yes. I did some other way.
Another issue is we are not getting Description of a custom field via rest API. I wish if we get description we can have some metadata in description of a custom field.

RE: Is there any option in custom fields to make them read only in the form - Added by Wisnu Widiarta 3 months ago

Bernhard Rohloff wrote:

You can set the permissions (read-only, required) of a field in the workflow settings in the administrator section.

Thank you, this works for me.

(1-7/7)