Change a form field's background color within the script of a button click event?
I have a script that executes upon the click of a button. Can I include a line of code that will change the background color of a field on my form?
Thanks!
4 replies
-
@Jen,
Sure.. take a look at the function
styled(text, colour, icon) - creates styled text elements. The icon is placed to the left of the text. Use "" for none, and the colour is the objects background
styled("Attention", "red", "warn")You can then have the button toggle a hidden attribute that will change the back ground color. The Icon is optional.
-
@Mconneen,
I did see the styled function in the user manual. I'm just not sure how to apply it here. Can you break this down for me a little? (I'm a new user.) What exactly do you mean by "hidden attribute"? Appreciate your help! -Jen
-
@Mconneen, Thanks I figured it out! - Jen
-
@Jen,
Glad you figured it out. What is the old saying.. Give a person a fish.. they eat for a day.. Teach a person to fish and they can eat for the rest of their life.... or something like that.. :)
Content aside
- 5 yrs agoLast active
- 4Replies
- 2268Views