Plugin Visibility Conditions

rdubester
Level 1
Plugin Visibility Conditions

Hey folks, simple question. I am trying to use a visibility condition based on a SELECT type parameter. The example in the documentation is

"visibilityCondition" : "model.prediction_type == 'classification'"

but it does not specify where the 'model' name comes from. Should that be replaced with the name of the plugin? The name of the code recipe itself? Thanks!

0 Kudos
1 Reply
StanG
Dataiker

Hi,
"model" refers to a Javascript object that contains all the parameter names you define in the json file as key, it's always called "model", so you just have to use model.YOUR_PARAM_NAME.

 

0 Kudos