Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Validation for Required Comment in Flexy Task Form Created with Nintex Forms Not Working

Last post 06-08-2012, 11:29 AM by jackgelo. 1 replies.
Sort Posts: Previous Next
  •  06-07-2012, 2:30 AM 23335

    Validation for Required Comment in Flexy Task Form Created with Nintex Forms Not Working

    Hi All,

    I was creating a flexy task form in Nintex Workflow, which outcome is Approve and Reject. For Reject outcoume, the comment is a required field. When using default nintex workflow form, the validation works just great. Everytime the user select reject and not entering comment, he will receive error message when clicking Complete Task button.

    However this is not working when the form is created using Nintex Forms. Has someone already have this issue? Or is there any solution for this besides adding javascript validation?

    Filed under:
  •  06-08-2012, 11:29 AM 23358 in reply to 23335

    Re: Validation for Required Comment in Flexy Task Form Created with Nintex Forms Not Working

    Hi,

     I've already had the same problem and I've solved it with this js:

     function ValidateComments(source, arguments)
    {
    var comments = NWF$(".nf-comments").find(":input").val();
    if (arguments.Value == "2" && comments == "") {
    arguments.IsValid = false;
    }
    }

    you have to put the tag nf-comments as css class of the comment field and change the value 2 to the one related to the outcome of your task.

    Because that number isn't always the order of the outcome, you have to find it (I've inserted an alert(arguments.Value) on the first run of the task to discover it).

    Hope this help.

    Giacomo

    Filed under: ,
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems