Menu

Action Form Notes

Action Form is a module developed by DNNSharp.com for the DNN Content Management System and Development Platform. The developers at LetItShine.biz have used the Action Form module for countless projects and solutions for a number of years. The following is an modest collection of notes that we have started to record about techniques to take advantage of the strengths of this module. We record this here not to become a secondary help system for Action Form users or DNNSharp. But if you can find something here that helps you, that makes us happy too.

Return to the list

Select the First Option in a Multiple Choice Dropdown

Action Form.

Mark Buelsing 0 667 Article rating: No rating

Sometimes we fill a second multiple choice dropdown with the options corresponding to the choice the user made in the first dropdown. This technique allows you to choose the first option in the second dropdown automatically.

In the Bind Expressions of the first dropdown field, On Change/Click box, enter the jquery that selects the first entry in the second dropdown. The format is,

$("#dnn2178SecondDropdownID")[0].selectedIndex=1;

Get the ID of the second dropdown by right-clicking on the field in Chrome, and choosing, "Inspect" from the pop-up menu.

If this is not working for you, it might be that you need to delay this line of code a bit to give the dropdown time to requery its contents first. Try this technique to slow it down a second. Adjust the time as necessary.

 

setTimeout(function (){

  // Something you want delayed.

  $("#dnn2178SecondDropdownID")[0].selectedIndex=1;

  }, 5000); // How long do you want the delay to be (in milliseconds)?

____

 

setTimeout(function (){

  }, 5000);

RSS