DNN Custom Forms by OnyakTech
OnyakTech Custom Forms DNN Module
by OnyakTech

OnyakTech Form Templates

Creating a custom forms with the OnyakTech Forms module is very simple. It really comes down to just two steps. Creating the Form Template and configuring how the form is displayed in Display Setup

  1. To edit an existing form, click on "Form Editor" module menu option. Select your form, edit and Save.
  2. To select the form to display, click on "Form Display Setup". Select your form and Save.
 

What are the forms saved as? The source of the form is basically just HTML with tokens that identify where to display controls and how those controls should interact with your users. The Forms module uses the Text/HTML Editor of DNN so you don’t need to know HTML, you just need to select a control from the Controls List or manually type the tokens into the Editor.

Control Panel?The Control Panel was added in version 4.0 to make it easier to set control properties without having to deal with tokens. To access the Control Panel, go into Edit Mode on the DNN page where you have the Forms module and then right-click any of the controls on your form to access the controls context menu. From that screen you can add new styling, data validation, and default values from the current users profile and more.

Tokens vs. Control Panelon-control based tokens that are used for validation, data access, events, etc have some limitations that can hold you back from creating great forms. For example, all letters in the tokens must be upper case characters and not all REGEX validation is accepted by the DNN HTML Editor. So while Tokens offer a great way to quickly create your Forms there are some limitations and that is where the Control Panel comes into play. With the Control Panel you don't have these limitations.

TIP: The Control Panel is control name specific and portal wide. What does that mean? If you use the Control Panel to add email validation to a control named "EMAIL" for a Form and then create another Form that also has a control named EMAIL used on a different page then the new Form and it's Email control will automatically have the same validation.

 

OnyakTech Forms Builder has one primary goal of being extremely easy to use for those times when you need to create a data entry form quickly and with full creative design rights. If you have any questions or need any help with this module, go to www.OnyakTech.com and we'll be glad to help you.

  • Form Templates
  • Tokens
  • Form Paks

Saving Form Templates

Forms are saved to the “OnyakTechForms” folder located in the current sites local root Portal folder. (e.g. ~\Portals\0\OnyakTechForms). When you add the Forms module to a page on your site for the first time all of the sample forms will be copied from the OnyakTechForms folder in the DesktopModules folder for the Forms module to your local Portals Forms folder. So if you want to change the sample forms that are copied over to new portals then you can modify the “templates” in the “DesktopModules\OnyakTech Forms\OnyakTechForms” folder. To save a form, just click “Save Changes”. If you want to save the current form that you are editing as a new form, just provide a name in the “Save Form As” textbox and click “Save As”.

Tokens

A "token" defines the type of control you want, the name you want for the control and other properties. Other properties can indicate the values to populate the control with, display options, etc. Form Templates consist of two primary elements, Tokens and HTML. This makes it possible to give you complete freedom when styling your form and integrating with JavaScript libraries. For more details go to Form Tokens Documentation page.

Form Paks

A Form Pak is a single file that contains all of the details to recreate your form on another DNN web site. You can download the Form Pak of the current Form from the main Forms toolbar displayed whiled in Edit Mode on the page and from the Forms Editor.