View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - How to make dropdown visible true/ false and required true/ false? - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

How to make dropdown visible true/ false and required true/ false?

More
19 Aoû 2016 06:49 #1 by sagar.toshniwal
I am making a small change in the Ticket form. Based on a particular status, I want to show Priority dropdown and make it mandatory. However, in all statuses before this, the Priority dropdown is hidden. The statuses are driven by workflow.

I could make the dropdown readOnly true or false. However, I am not getting any solution to make it visible true or false, and required true or false.

Please help.

I am an Eagle. On a mission to help those who want to help themselves...

Please Connexion or Create an account to join the conversation.

More
19 Aoû 2016 09:22 - 19 Aoû 2016 09:23 #2 by babynus
Just use $_fieldsAttributes that you change in constructor
function __construct($id = NULL, $withoutDependentObjects=false) {
parent::__construct($id,$withoutDependentObjects);
    if ($this->idStatus=1 or $this->idStatus=2) { // and so on
      self::$_fieldsAttributes['idPriority']='hidden';
    } else {
      self::$_fieldsAttributes['idPriority']='required';
    }
}

Babynus
Administrator of ProjeQtOr web site
Last edit: 19 Aoû 2016 09:23 by babynus.

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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