ProjeQtOr free project management software - Screen customization: How to display a default value for a drop down list ? - ProjeQtOr
 

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

More
07 Fév 2020 10:14 #1 by fmartin
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';

Please Connexion or Create an account to join the conversation.

More
07 Fév 2020 16:53 #2 by babynus
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.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.020 seconds