• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

quick question - making button visible if two conditions are met

Explorer ,
May 13, 2011 May 13, 2011

Copy link to clipboard

Copied

I simply want a button to be visible is once condition is true and another condition is false. Shouldn't this line of code work?

<mx:Button

id="Btn"

label="

Submit"

color="

#FF0000"

enabled="

{islRequired}"

visible="

{!.isAdmin}  {isRequired}"

click="submit()"

/>

isadmin = false

isrequired = true

the button should be visible

Am I missing something?

Views

297

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 13, 2011 May 13, 2011

Copy link to clipboard

Copied

LATEST

Maybe you miss OR (||) or AND (&&), but I never use at mxml

visible="{!.isAdmin && isRequired}

Works?

Best Regards,

Miguel

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines