Javascript in Column Formulas #14502
-
Hello, I am trying to add some javascript to make a formula based on if certain fields are completed. this always errors out. What am I doing wrong? function checkTitle () {
if (typeof $("Title") === "string" && $("Title").length === 0) {
return $("Format")+" - "+$("Platform")+" - "
} else if (str === null) {
return $("Format")+" - "+$("Platform")+" 2 "
} else {
return $("Format")+" - "+$("Platform")+" 3 "
}
}
//return $("Format")+" - "+$("Platform")+" 3 "
return checkTitle();``` |
Beta Was this translation helpful? Give feedback.
Answered by
ConorWebb96
Sep 3, 2024
Replies: 2 comments 2 replies
-
You haven't defined a variable called |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jorge-gbs
-
Here's a step-by-step breakdown of what might be going wrong in your code and how you can fix it: 1. Problem with
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
else if (str === null) {
You haven't defined a variable called
str
anywhere.