Is there any way I can set a container or variable state using a front end script. I have a variable set as a relationship (single) and I want to be able to show or hide other elements on the form based upon the value of the variable

To tidy up the GUI I want the Select Function to control what is visible ie: for Plan Routes I only want Select Date, Select Jobs & Select Available Engineers to be visible to the user.
I know I can set them at form creation but I've yet to find a method to do this dynamically when being used