Can we display value in drop down based on conditions

In drop down  choice labels and choice value ..can we display value based on if conditions..

I need to display value in drop down based on the product availability..

And I have around 10 products

Can someone help with codes

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Radha009

    I (or someone else) can do that, but you'd need to provide some more details first.

    • Can you clarify what you mean when you say your dropdown is "inside for loop"? 
    • How is the value of local!quantity set, and what value(s) will it / could it contain?
    • What exactly are you hoping to have happen in your if() statement, i.e. "if(local!quantity < cons!QUANTITY..." etc?  In other words, I'm unclear both what you're expecting that to resolve to, and i'm unclear what your expectations would be about the choice labels that end up being displayed from it.
Children
No Data