Quantcast
Channel: Nintex Connect: Unanswered Threads
Viewing all articles
Browse latest Browse all 2462

Trouble with Javascript for Closed button

$
0
0

I have a form, which is basically an incident ticket.  I have added a button to the form called Close Ticket.  I want to update 2 field values when the button is clicked.  The fields are named txtStatus and txtDateClosed.  For button action I selected Javascript.  On the button settings advanced tab I added CloseTicket in the client click field.  In the form Javascript settings I placed the following javascript code. 

function CloseTicket() {
    var status = NWF$('#' + txtStatus).val();
    var DateClosed = NWF$('#' + txtDateClosed).val();
         status = “Complete”;

         DateClosed = new Date();
    }

Now I when I try to load the form I see "error on page" in the status bar...when I double click on it, see the following error messages:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0; InfoPath.3; MS-RTC LM 8)
Timestamp: Mon, 17 Mar 2014 21:26:30 UTC


Message: Invalid character
Line: 179
Char: 19
Code: 0
URI: http://hqstaging1/Financial/HQBCS/_layouts/NintexForms/PreviewNintexForm.aspx?device=Desktop&mode=1&listId=69df34b8-dce7-4e5a-bc15-9124ca8e158c&env=0&formId=46ae4612-2ffb-4c4d-b0f9-079c70a6335c&IsDlg=1


Message: 'nfFillerLoadFunctions' is undefined
Line: 248
Char: 13
Code: 0
URI: http://hqstaging1/Financial/HQBCS/_layouts/NintexForms/PreviewNintexForm.aspx?device=Desktop&mode=1&listId=69df34b8-dce7-4e5a-bc15-9124ca8e158c&env=0&formId=46ae4612-2ffb-4c4d-b0f9-079c70a6335c&IsDlg=1


Message: 'fnef3eee848d9f4d069a67d6e31ad35da0' is undefined
Line: 183
Char: 36
Code: 0
URI: http://hqstaging1/Financial/HQBCS/_layouts/NintexForms/PreviewNintexForm.aspx?device=Desktop&mode=1&listId=69df34b8-dce7-4e5a-bc15-9124ca8e158c&env=0&formId=46ae4612-2ffb-4c4d-b0f9-079c70a6335c&IsDlg=1


Message: Invalid argument.
Line: 2
Char: 141352
Code: 0
URI: http://hqstaging1/_layouts/sp.ui.rte.js?rev=%2BtEHLAauriWYNVgIiWDHIA%3D%3D

 


 

 


Viewing all articles
Browse latest Browse all 2462

Trending Articles