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
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Any help pls?
Thank you
Views
Replies
Total Likes
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";
}
Views
Replies
Total Likes
Right, my original posting is not clear/understandable, Sorry
I am asking about the below TEXT (Tax Information) changing the visibility DYNAMICALLY, which can determinaed by my_own_flag
Pls. help me is it possible to change its visibility dynamically? if so, JS pls?
Thank you
Views
Replies
Total Likes
A text object acts like any other for hiding or showing.
The code I showed previously using the .presence method controls visibility.
Views
Replies
Total Likes
Thank you, but where should i put this code, bcz all events are greyed for this TEXT!
If i want to put at root (say my_form) level, then, how can i tell to the system that to make the TAX INFORMATION text as hide/visible? bcz this TAX INFORMATION textObject doesn't have any NAME to it right?
Thank yoiu
Views
Replies
Total Likes
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.
Views
Replies
Total Likes