Unfortunately there isn't any way to show/hide a standalone label dynamically. There is this ER which would be worth voting on regarding showing/hiding a full group box which I would hope would then cover any field inside it regardless of its type: Hide/Show Group Box with Window Calculation.
A couple of solutions in the meantime:
1. Probably not good for you due to the length of text but I've seen people put instructional text in the group box title itself.
2. Use a label from one of your attributes to include the instructional text.
As you've already said you could also use an attribute but it does then mean the text is saved with every record unnecessarily.
I hope that helps!
I have already voted UP on the ER you mention.
Hadn't thought of using an existing attribute label. The issue I see here though is keeping the window layout consistent on the web form and still keep the meaningful text label associated with the field.
Is this a feasible solution.
Rather than have separate group boxes just have a single group box with all the dynamically hideable attributes within it.
The first attribute within the group box would be a dropdown list linked to a reference list and this would be calculated to pick up the relevant entry depending on the value of the trigger attribute and display it as read only. The reference list would contain entries for all the introductory text.
If this is a workable approach I am not sure how to structure the list or program the calculation to pick up the matching entry in the list.
For scalability I would like the reference list to contain text entries for other windows/processes rather than have a separate list for each one. Any thoughts?
I have assumed that by linking to a reference list in this way the attribute on the record would contain a pointer to the text not the text itself. Is this correct?
That is a good idea, and might actually be much simpler too. If the section being displayed is always dependant on the "Change Required" dropdown, could you add a new String attribute to that reference list to store the instructions and just display that as a related field? Then its value will be updated automatically when you select a value in the dropdown.
Hi Andrew - thought I'd throw in here what we do - we utilise an attribute that is created to specifically display the information required. On setting up the attribute we will set it as an HTML field and set it to have a default value of whatever you need the text to be. The nice thing here is that because it's an HTML field you can format the text as desired.
On the window itself we treat as anything else but we hide the toolbar and make the protection level read only. Once you try a few things out it can look reasonably good. One thing to watch is that regardless of the field size the default value is limited to (I think) 100 chars, therefore even making the field unlimited in size (-1) you are still technically limietd by the size of the default value.