Skip to content

Multiple dependency input function #140

@vaishnavrajeevanmv

Description

@vaishnavrajeevanmv

Hey ,

Code:

`function (names, data, cb) {
var schemas = new Object();
var schema = new Object();

schema.type = "string";

if (data.option1 === "efg") {

    schema.title = "efg";
    schema.enum = ["", ""]
    
} else if (data.option1 === "abc") {
    schema.title = "abc";
    schema.enum = ["", ""]
}

schemas["$.suboption1"] = schema;
setTimeout(function(){cb(schemas)},500); // in order to show asynchrony

}`

How can i get dynamic value instead of "option1" , what parameter should i pass to get Parent Option's Id

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions