Thanks to help in the past from Bob I am using code like the following to show/hide form fields based on the change in a drop-down:
This works great for changing the values.
However, now I want to open a form and display fields based on a value in the associated record. So, a user has selected "2" when they originally submitted the form. When they open the form to edit the record, I want the form to show the first two sections only, based on the "2" in the number field. Is this possible?
window.addEvent('domready', function() {
$('trips').addEvent('change', function() {
if ( $('trips').value == '1' ) {
This works great for changing the values.
However, now I want to open a form and display fields based on a value in the associated record. So, a user has selected "2" when they originally submitted the form. When they open the form to edit the record, I want the form to show the first two sections only, based on the "2" in the number field. Is this possible?