Forum Replies Created
-
AuthorPosts
-
I also apologize for the typos. My phone keeps auto correcting.
I read through the code again and missed a punctuation. Everything is working on the drop down now. The only follow up challenge we are running into is the variations of JavaScript I’ve written are not able to calculate an average using the values. It continues to provide an error of NaN. The most recent version I tried was in rules using this code.
{inline}
setFieldValue(‘myfield1’, ((“myfield2” + “myfield3” + “myfield4”)/3))
When I tried writing a function in the custom js tab it is canceling the drop down functionality.Thank you very much. The custom is no longer has any errors on it. I have one last follow up question and I could not find anything in the JavaScript sections of prior questions.
I have the code fully entered in the custom js tab, but the field is still not reacting to the function. Am I missing a step to execute the function? I saw references to cewp on some of your older posts but I’m not seeing that option anywhere. My apologies for all of the extra questions on thisI have been trying to leverage this and can’t seem to get past an error on line 11.
b.push(“<option value=”>—</option>”);
It is giving an unclosed regular expression error. I’be never used JavaScript prior so I apologize if this is a simple mistake on my part.My apologies for the delay. The share point field is a choice field with drop down. The values that reflect on the Sharepoint list are 0-3. The drop down in the form displays text of proficient or not proficient, creating a score of 3 or 1. The value portion is then used in a calculated single line of text field to generate an overall average score. Essentially the functionality needs to display an unrelated choice in the drop down but the field only receives the value on the list.
-
AuthorPosts