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

Problems populating text field from calculated value

Jump to solution

Hi,

I am trying to populate a text field based on a calculated value, but I have been unsuccessful.  The logic I'm using is:

 

  • Form custom javascript equals:

 

              function UpdateTextBox(inpval){
                 NWF$('RiskRankingHSEScore'+TextBox).val(inpval);
                 return inpval;
              }

 

I have used this logic based on advice in a similar forum question, but for some reason it just isn't working for me so suspect there is more to it and I'm missing something.

Thank you!

Labels: (2)
Tags (1)
0 Kudos
Reply
2 Replies
Highlighted
Workflow Hero

Re: Problems populating text field from calculated value

Jump to solution

Hi Christina Gateley‌ ,

Two things to note here :

1] Set the Client ID JavaScript variable name of the text field as RiskRankingHSEScore

2] Update the custom JavaScript code as below :

function UpdateTextBox(inpval){
NWF$('#'+ RiskRankingHSEScore).val(inpval);
return "";
}

Regards,

Saud Khatri

Reply
Workflow Hero

Re: Problems populating text field from calculated value

Jump to solution

Perfect!  Thank you very much, Saud.

Best wishes,

Christina.

Reply