Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple UI Rules in one Rule

SOLVED
Go to solution
Highlighted
john.jeremiah
Occasional Contributor

Multiple UI Rules in one Rule

Is there a way to create a single Advanced Rule that applies two UI Rules?

I have a situation where I want to set a field to be both Visible and Required... and when I use the two UI Rules in the same Advanced Rule... as in:


setFieldVisible(true)
setFieldRequired(true)


Neither of the rules appear to process.

Am I stuck with two separate rules for each UI change?

Any suggestions?


Thanks

John
2 REPLIES
Jason Nichols K
Honored Contributor

Re: Multiple UI Rules in one Rule

John,

Separate each UI Rule with a semi-colon (;). They are just JavaScript functions, so the normal JS code syntax would apply.

Jason
James++
Regular Collector
Solution

Re: Multiple UI Rules in one Rule

Hi John,

The code must be as:

setFieldVisible(true);setFieldRequired(true)

There must be a semi colon in between and also set the dependency and Result feilds correctly.


//Add this to "OnDomLoad" event