Menu

Action Form Notes

Action Form is a module developed by PlantAnApp 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
Mark Buelsing

Set the value of Dropdown with Auto Complete

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

function setAutocompletCurrentValue(id, value) {
   $(id).val(value);
   var textToShow = $(id).find(":selected").text();
   $(id).parent().find("span").find("input").val(textToShow);
}

Called like this:

setAutocompletCurrentValue(dnn843GCSFieldName, 'test');

Notes:

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.

Previous Article Prevent a Form Submit
Next Article ReInit an Action Form by JS
Print
3154 Rate this article:
No rating

Leave a comment

This form collects your name, email, IP address and content so that we can keep track of the comments placed on the website. For more info check our Privacy Policy and Terms Of Use where you will get more info on where, how and why we store your data.
Add comment