Solutions to Problems or Custom Needs in a Website

Many solutions we create for one site can be used and appreciated on other sites also.

Have a look at this list of components and solutions we have developed over time and if you could benefit from any of them you are welcome to them.

Please let us know if you would like to discuss the details or would like some help getting one installed.

Set the value of Dropdown with Auto Complete

Mark Buelsing 0 1393 Article rating: No rating

Use this function to set the value of a dropdown with auto complete

function setAutocompletCurrentValue(id, value) {
   var textToShow = $(id).find(":selected").text();

Called like this:

setAutocompletCurrentValue(dnn843GCSFieldName, 'test');


The value you set it to must be a correct choice for the control from its dataset,

Not sure if the single quotes are needed or not.

Select the First Option in a Multiple Choice Dropdown

Action Form.

Mark Buelsing 0 1844 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,


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.


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


Here is just the pause function by itself. put your code in between the { } brackets.

setTimeout(function (){

  }, 000);