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

Set the Value of a Dropdown with JQuery

Mark Buelsing 0 0 Article rating: No rating

To set the value of a Action Form dropdown using JQuery

 

If you place your code in the On Change/Click section of a form field, the following will work:

form.fields.FieldName.value = "AValue";

*Note the value you are setting must match one of the choices in the dropdown

 

If you are placing your code in a static text field or the initilization section,

you might need to get in-scope to set it. Try the following example

 

//gets the scope and uses it to set the value

  angular.element($("#dnn931Size")).scope().form.fields.Size.value = '12px';

 

//Update the UI with the change
  angular.element($("#dnn931Size")).scope().$apply();

 

How to Click a Button Using Javascript in Action Form

Mark Buelsing 0 0 Article rating: No rating

If the Button ID is FillDirectInput,

Use the following syntax to get the ID and insert into a JQuery click command

$('#'+form.fields.FillDirectInput.id).click();

A way to get the form field values from an action form

${{form.fields.BodyType.value}}

form.fields.CarsName.value
form.fields.cbYear.selected.text

RSS