AnsweredAssumed Answered

set value of singleline and save the form

Question asked by nps9 on May 1, 2017
Latest reply on May 2, 2017 by nps9

I would like to use a button to set the value of a single line text box (txtCurrentStatus) and then save the form. I have looked at some other questions on the community site but nothing seems to be working for me. I have set the client ID in the text box properties (idCurrStatus) and verified my function is being called with an alert function before and after my line to set the textbox value but the value never changes.


in form settings custom javascript I have:

function SetStatus () { 
   NWF$('#' + idCurrStatus).val("Approved"); 

button client click I have:


(cause validation is no)

single line txtCurrStatus:

client ID is yes

value is idCurrStatus


After the form refreshes the value hasn't changed and the form hasn't saved. I have read two other post that are similar and neither seem to be working for me.