05-12-2020 04:34
05-12-2020 04:34
Hi community,
I have a Select statement from where a user can select one out of several options.
Answered! Go to the Best Answer.
05-12-2020 13:37
05-12-2020 13:37
This is tricky but probably possible (so long as you're not too fussy about what you mean by 'popup').
Have a look at the toggle code here. It shows how a setting can be shown or hidden depending on the value of some other setting.
It might be possible to connect that directly to the setting of your <Select> (by accessing the value within the setting object). However, if that doesn't work or is too unreadable, you could use the onSelection attribute of your <Select> to set some other simple setting (it could be just a boolean, and doesn't need to directly correspond to any setting element); eg, 'custom'. Then, make the display of the TextInput conditional on that.
05-12-2020 13:37
05-12-2020 13:37
This is tricky but probably possible (so long as you're not too fussy about what you mean by 'popup').
Have a look at the toggle code here. It shows how a setting can be shown or hidden depending on the value of some other setting.
It might be possible to connect that directly to the setting of your <Select> (by accessing the value within the setting object). However, if that doesn't work or is too unreadable, you could use the onSelection attribute of your <Select> to set some other simple setting (it could be just a boolean, and doesn't need to directly correspond to any setting element); eg, 'custom'. Then, make the display of the TextInput conditional on that.
05-13-2020 23:03
05-13-2020 23:03
Thanks i used the onSelect and it worked. I tried such thing before but didn't understand the synataxis of ReactJS but now I understand.
Thnx!