Skip to main content
Question

PXUIVisible to make dropdown dynamically visible

  • March 20, 2025
  • 1 reply
  • 27 views

Forum|alt.badge.img

I have two dropdowns/combos I’ve added, and would like to control the visibility of the second menu based on the value of the first:

I would like the second dropdown (Shot Peen) be visible if the first dropdown (Mold Part) = 1/Yes

Would I set the visibility like this?

[PXUIVisible(typeof(Where<TSMIGOpportunityQuotePricingExt.UsrCMoldPartTexture.IsEqual<1>>))]

So the final would be something like this:

[PXDBInt]
[PXIntList(new int[] {0, 1}, new string[] {"No", "Yes"})]
[PXUIVisible(typeof(Where<TSMIGOpportunityQuotePricing.UsrCMoldPartTexture.IsEqual<1>>))]
[PXUIField(DisplayName="Shot Peen 330 or Less?")]

Any help appreciated… the first time I tried this I got an error but I think because I got the dac/field name wrong.

 

 

1 reply

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3404 replies
  • March 21, 2025

@swartzfeger Yes, that’s right. I did minor for your code. Please check below

 

[PXDBInt]
[PXIntList(new int[] {0, 1}, new string[] {"No", "Yes"})]
[PXUIVisible(typeof(Where<TSMIGOpportunityQuotePricing.UsrCMoldPartTexture.IsEqual<int1>>))]
[PXUIField(DisplayName="Shot Peen 330 or Less?")]

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings