Skip navigation
Currently Being Moderated

Text object visibility?

Aug 6, 2012 3:00 PM

Hello

 

I knew that its odd, but just want to chk with experts that do we hava any chance to make visible/hide a text object DYNAMICALLY?

 

I put a text object, i want to change its visibility dunamically, i mean, i have a flag, i will use it in JS to determine the visibility of this text object, pls. let me know is it possible? if so, JS code anippet pls. ?

 

Thank you

 
Replies
  • Currently Being Moderated
    Aug 7, 2012 9:24 AM   in reply to srinivas1506

    A simple if statement should do it. Unless I'm not understanding what you're after.

     

    if (flag == show) {

         textobject.presence = "visible";

    }

    else if (flag == hide) {

         textobject.presence = "hidden";

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 5:14 PM   in reply to srinivas1506

    A text object acts like any other for hiding or showing.

     

    The code I showed previously using the .presence method controls visibility.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 8, 2012 2:06 PM   in reply to srinivas1506

    Ah, I see what you mean. You would have to run the script elsewhere - what triggers the decision to show or hide the text? Put the script there.

     

    Or you could put the text object into a subform and control the presence via the subform.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points