- You are here:
- Home
- Knowledge Base
- Helpful Information
- How do I default a input section to be open (or closed)?
To change this behavior on all of your installed calculators you need to edit the KJESiteSpecific.js file and add DROPPER _OPEN parameters. Set this parameter to true to have them default open and false to default close. The first input section is controlled by DROPPER _OPEN1, the second by DROPPER _OPEN2, etc. The lines below would default the first three input sections to be open:
KJE.parameters.set("DROPPER_OPEN1", true);
KJE.parameters.set("DROPPER_OPEN2", true);
KJE.parameters.set("DROPPER_OPEN3", true);
If a calculator had only two input sections, DROPPER _OPEN3 would be ignored.
You can also control the behavior of the input sections on a calculator by calculator basis by adding the code above to a specific calculators PARAMS file. For example, for the Mortgage Loan Calculator you would add these lines to the MortgageLoanParams.js file.