Skip navigation
All Places > Getting Started > Blog > Authors kixtebur

Getting Started

2 Posts authored by: kixtebur

This post intends to show printing correctly filled out Nintex forms without validation error summary messages and highlighted fields. Nintex form validation warnings were still visible when I printed the successfully validated form that pictured below.

 

 

I have added the lines of JQuery codes that before the window.print() call listed below.

 

       NWF$('.nf-validation-summary').css('display','none');
       NWF$('.nf-error-highlight').removeClass('nf-error-highlight');

 

Finally, I have printed the correctly submitted form without any validation warning on the printout that shown below.

 

This post intends to demonstrate how a JavaScript/JQuery function can populate a calculated value control dynamically within a Nintex Form. Accessing data by using REST API Service makes dynamic content compulsory.

 

Here is the form view that shows unpopulated calculated value controls as following.

 

 

In order to resolve this issue, I have decided to force calculated values to be recalculated by JavaScript code.To accomplish this, we need to setup following steps.

  1. Define a textbox with the name of 'hiddenField' and set « Store Client ID in Javascript variable » to Yes and give the value of « Client ID Javascript variable name » as 'hiddenFieldPageID'.
  2. Then all our calculated values formula should be included with a reference to the textbox.
  3. In our calculated values, add a reference as a parameter that does not be used in our Javascript method.
  4. Ensure the formula is set to getLabel("lblSecondLang1",hiddenField).
  5. You will be able to force a calculated value to recalculate by calling these following lines of JavaScript code.

            var hiddenTextBox = NWF$("#" + hiddenFieldPageID);
            NWF.FormFiller.Functions.ProcessOnChange(hiddenTextBox);

 

The calculated value settings as shown below.

 

 

If you noticed, I have added the 'hiddenField' control into the fuction as a parameter, which causes the calculated value is triggered when the control has been updated. Finally, calling of JavaScript function ProcessOnChange refreshes the controls' value again.

 


 

calculated value control dynamic population resize at runtime

Filter Blog

By date: By tag: