cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Disconnected field in form shows value of previous edit session

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!

0 Kudos
Reply
3 Replies
Workflow Hero

Re: Disconnected field in form shows value of previous edit session

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.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Disconnected field in form shows value of previous edit session

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?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Disconnected field in form shows value of previous edit session

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.

0 Kudos
Accept as Solution Reply