Disconnected field in form shows value of previous edit session

  • 4 January 2019
  • 3 replies
  • 0 views

Badge +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

Userlevel 5
Badge +14

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.

Badge +7

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?

Userlevel 5
Badge +14

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.

Reply