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

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

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

More
19 Aug 2016 09:22 - 19 Aug 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 Aug 2016 09:23 by babynus.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.030 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.