Created
June 1, 2022 20:28
-
-
Save bootleg224/9c9de84180ca5c9f13313d171197d084 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Step 1: For Debugging you can add this code to the console | |
FrontendApiManager.onReady("evaluationForm", function (api) { | |
window.api = api; | |
}); | |
//Step 2: Get Variables bound to javascript objects | |
var question1 = api.getQuestion("howWellDidThisApplicantPerform"); | |
var question2 = api.getQuestion("comments"); | |
//Now bind the change event | |
question1.onChange(function(oldValue, newValue){ | |
if(newValue == "Did an Outstanding Job") | |
{ | |
question2.hide(); | |
} | |
else | |
{ | |
question2.show(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment