Issue #477Opened November 2, 2017by HarshOB0 reactions

By default disable Traits, On previous change in traits Enable next traits.

Question

Hello,

So, I want to define Two traits in the component settings. First one is CheckBox and another one is TextBox(There can be multiple). I will define First CheckBox the multiple Input fields. When a CheckBox is clicked/checked on the base Next TextBoxes/input fields (That will be disabled by default) will be Enable. How can I achieve something like this?

Thank You.

Answers (3)

artfNovember 6, 20170 reactions

@HarshOB Did you check already the wiki about Traits? I explain there how to add checkbox inputs and how to react to their changes. If it's not clear can you point me out what should I add?

HarshOBNovember 9, 20170 reactions

Here I explain again with a screenshot. You can see that there are two text fields under one checkbox. So, when I clicked on checkbox/ check that checkbox then that two input fields will be enabled(I want it to disable when it loads for the first time).

screenshot from 2017-11-09 17-13-33

artfNovember 9, 20170 reactions

No, it's not something you can do with a built-in trait, but you can define your own type (which can even include all your inputs) by extending the default one

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.