Skip to main content
Nintex Community Menu Bar

Disconnected field in form shows value of previous edit session

  • January 4, 2019
  • 3 replies
  • 11 views

Forum|alt.badge.img+7

Hello,

This seems like it should be very simple, but I must be missing something.  I have a field on my form called CCIControl.  It is "Not connected" to any field in my list.  I use it for the session, and would like for it to be blank next time the item is edited.  But the value from the previous edit session remains.  How can I blank this out for each new edit session?

Thank you!

3 replies

Forum|alt.badge.img+14
  • Scholar
  • January 7, 2019

all the values from not connected fields are saved to a hidden list field named FormData.

so that so get empty field on next edit you'd need to clear it somehow before edits are submitted (javascript) or afterwards with a workflow.


Forum|alt.badge.img+7
  • Author
  • January 7, 2019

Thank you for your reply.  Can you please give me an example of how the javascript code would look?  Would it go on the form under Settings -> Custom JavaScript?


Forum|alt.badge.img+14
  • Scholar
  • January 8, 2019

eg.

function ClearTextBox(){
    NWF$('#' + jsTextBoxToBeCleared).val('');
}

and configure submit button 'Client click' option to call the function.

yes, code should be placed into custom javascript.