Hi / Hallo everyone
i have dropdown and the options are dropdown1, dropdown2, dropdown3, other. i have inputtext called input3 and default is hidden. now, how can i make if the options selected is "other" then display input3??
Hello @Bayu Ramdhan,
I would recommend using a static entity for the dropdown values.
and add a check in the "visible" field of the container of your input 3 to only show when the dropdown value = Other.Id.
This way you prevent hardcoded values in your code.
See the example oml I attached.
Hope this helps
oke, i have seen your oml. thank you so much again @Mika Grootenboer
Hello Bayu,
If you are developing reactive application you can do that by adding following condition to display property of input field
Var = OtherId
where Var is variable assigned to dropdown and OtherId is Id of Other item.
If you are using Traditional you will need to handle change of dropdown list and if Other selected set boolean variable (for example ShowInputField) to true else to false and assign that variable to display of input field but here you will need one more step to us AjaxRefresh to refresh container contains input field or input field itself
thank you for the answer, so this must be create javascript first, right??