there's not a way to do that via configuration, but you can do it with using some JavaScript to play with the form styling. For example let's imagine that you have two fields:
You can do the following:
var fieldDisplay;if (this.value == "sick") {fieldDisplay = "block";} else {fieldDisplay = "none";}$("#disease_label_container").css("display", fieldDisplay);$("#disease_label").css("display", fieldDisplay);$("#disease_container").css("display", fieldDisplay);$("#disease").css("display", fieldDisplay);This code will be executed after the ListBox value changes modifying the styling of the disease input & his label and also the field & label container.Notice that I'm using the pattern <fieldName>_<whatever> ( disease_ ) to get the field, label & containers from the DOM... this pattern will work for any field on the form.If you want to use this type of functionallity on other fields on the form maybe you can modify the form layout to use a Custom one and write a JavaScript function there that does the something similar and call it from the fields On change Script code function.
to show hide a Short Date or Timestamp you should do the something like:$("#date_label_container").css("display", fieldDisplay);$("#date_label").css("display", fieldDisplay);$("#date_container").css("display", fieldDisplay);$("#date_container").children().css("display", fieldDisplay);$("#date").css("display", fieldDisplay);I thought it should be the same that a simple input but the Date widget is a bit more complex... at some point I'd have to review this.The problem for HTML label is that each label doesn't have a specific name, what I would do is to create your own label, for example:<h1> Hi! this is a label! </h1>then on the HTML editor press the Source button and I would surround the label content with a div that contains a fixed ID, for example:change this:<h1> Hi! this is a label! </h1>to:<div id="myLabel" style="display:none"><h1> Hi! this is a label! </h1></div>And then you'll be able to do:$("#myLabel").css("display", fieldDisplay);if you're going to show / hide all the inputs on based on a single input value, maybe you'll have issues storing all the JavaScript code on the field On change Script property since it has a limited size. What I would do is create a custom layout for the form and then edit the form layout html and write a JavaScript function at the top of the layout like:<script>function updateFields( var value ) {var fieldDisplay;if ( value == "sick" ) {fieldDisplay = "block";} else {fieldDisplay = "none";}// Hide the TextBox$("#disease_label_container").css("display", fieldDisplay);$("#disease_label").css("display", fieldDisplay);$("#disease_container").css("display", fieldDisplay);$("#disease").css("display", fieldDisplay);// Hide the Date$("#date_label_container").css("display", fieldDisplay);$("#date_label").css("display", fieldDisplay);$("#date_container").css("display", fieldDisplay);$("#date_container").children().css("display", fieldDisplay);$("#date").css("display", fieldDisplay);// Hide the label$("#myLabel").css("display", fieldDisplay);}</script>and then modify your field On change Script property to call your function like updateFields( this.value );