View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
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 Feb 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 Log in or Create an account to join the conversation.

More
07 Feb 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 Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.029 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.