Forum

Screen customizatio...
 
Notifications
Clear all

Screen customization: How to display a default value for a drop down list ?

2 Posts
2 Users
0 Reactions
1,555 Views
(@fmartin)
Posts: 43
Active Member
Topic starter
 
[#6484]

I'd like to display in a mandatory field a string that displays a message to user such as: "Select Responsible".

"Select Responsible" is not an element of the list of course. Moreover, upon saving the ticket, if the field is mandatory and that "Select Responsible" is still present, an error should pop up to warn the user the field is mandatory.

At the moment, when saving the ticket with such a value, the user gets logged out automatically (bug reported in the "Submit Issue" section).

Maybe I'm doing things wrong:
This is what I typed in the default value of the field:

###EVAL### $value='Select Responsible';


 
Posted : 07 Feb 2020 12H14
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Your value is valid for an input field, but not for a list.
Values stored for lists are integers (the id of the selected item, not the displayed value).
When you commit the form, fields are checked, and non numeric values in list fields will be considered as a hack attenps, and so user is disconnected.

What you try to do is not possible.


 
Posted : 07 Feb 2020 18H53
Share:

Scroll to Top