freshrhino
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Use field inputs in html fieldOk I see, I had a syntax error using arr(1) instead of arr[1] thank you!!!
I guess to grab an item as a value I would use .Val instead of .html?
Thank you!!
Forum: Plugins
In reply to: [Calculated Fields Form] Use field inputs in html fieldIt worked except for I don’t know where you put the text “The values in the array are…”
In your example, how could I only pull position 1 from the array? I would like to then output, “the second item in the array is… fieldname2
Forum: Plugins
In reply to: [Calculated Fields Form] Use field inputs in html fieldYes sorry, I have an array that created in a calculated field and I would like to be able to use items from that array in a html field. I would actually like to bring the entire array into the html field.
Ok I played with the code you sent and it did answer my question. The setVal allowed me to change the value of another field based on whatever variable I wanted to send it. Thank you for the help! I can’t believe how fast you responded to that question by the way. Very helpful!
That does answer part of my question. Using your example.
If I hadFieldname1 has the function below and I want to show the result there but I also want to take newfieldname2 variable out and show it in a different field. The reason I do not want to have a separate field to calculate newfieldname2 is because in my actual code I have to iterate through some variables to get my final solution.
fieldname2 = 2;
fieldname3 = 2;(function(){
var newfieldname2 = fieldname2*10;var result = newfieldname2+fieldname3;
return result;
})()User should see there inputs for field and 2 and 3
But the results would be
fieldname1 = 22
fieldname4 = 20 (which is a variable that was created in fieldname1)