Skip to content

Instantly share code, notes, and snippets.

@bootleg224
Created June 1, 2022 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bootleg224/9c9de84180ca5c9f13313d171197d084 to your computer and use it in GitHub Desktop.
Save bootleg224/9c9de84180ca5c9f13313d171197d084 to your computer and use it in GitHub Desktop.
//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