AnsweredAssumed Answered

JavaScript: Put a Calculated Value and Put it in a Text Box

Question asked by kelliganp on Oct 13, 2016
Latest reply on Oct 14, 2016 by kelliganp

Hi Folks,

 

I am creating a form signature feature on one of my forms and I want to get the current user display name to show up in the signature block. Here is what I have so far:

 

I have a calculated Value that gets exactly what I want...

 

I want to get the values from the Calculated Value control into the following JavaScript so I can trigger it with a button click"

function signFormPM() {
    var curDate = new Date();
    NWF$('#'+ jsvar_PMDate).val((curDate.getMonth() + 1) + '/' + curDate.getDate() + '/' + curDate.getFullYear());
    NWF$('#'+ jsvar_PMName).val("[PUT THE CALC VALUE HERE](Current User)");
}

 

Any thoughts?

Outcomes