![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
To view the sample for this task, import the advanced sample projects as described in Import the Forms Advanced Samples. The sample form and CSS file for the task described in this section are contained in the forms.samples.controls project.The form (SetBackgroundColorForControl.form) is at the following location:The CSS file (custom.css) is at the following location:
3. Add a computation action for the Style Class Name(s) property in the General Properties view for the form.Provide following JavaScript code for this action and select the update event of this control.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |