show / hide parameters based on boolean and enum values #909
Replies: 3 comments
-
It sounds to me like your question is about a specific form generation tool. We manage the specification here, not any particular tooling. If you have a question about the tool you're using, you'll need to ask its maintainers. If your question is more generally about JSON Schema, then we're happy to help. For these kinds of conditional scenarios, you may find the |
Beta Was this translation helpful? Give feedback.
-
@gregsdennis Thank you for the answer. My question is more generally about json schema, I just used this tool as an example. |
Beta Was this translation helpful? Give feedback.
-
I tried many different combinations from the documentation but couldn't make it work as expected. Is there a specific way to use conditions in nextflow schema? |
Beta Was this translation helpful? Give feedback.
-
Is there an option to show additional parameters only when one of the enum options is selected?
I have a trim_fastq option (boolean) which can be set to true or false and additionally user can choose different trimming tools (fastp, trimmomatic, trimgalore). There's also a parameter section with default values for each trimming tool, set as hidden. However, I'd like that those parameters be hidden if trim_fastq is set to false, and that the section for tool specific params only show up when trim_fastq is true and specific tool is selected. E.g. when I set trim_fastq to true, and I select fastp as a trimming tool, I'd like that only section with parameters for fastp show up and that params for other trimming tools stay hidden. If I set trim_fastq to false, I'd like that all other trimming tool sections be hidden.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions