on ‎2025 Mar 30 8:37 AM
In SAP Analytics Cloud, is it possible to dynamically show or hide specific Input Controls based on the values of other filters, such as a slider, switch, or box list?
For example, if a user selects a adjusts a slider to a specific range, can other Input Controls be automatically hidden or displayed accordingly?
Thank you in advance for your assistance and guidance!
Request clarification before answering.
Hi,
yes that´s possible. Let´s assume you have slider called "Slider_1", which allows values between 0 and 100 and whenever the slider is equal or above 50 you want to hide the input control called "InputControl_1" (and it should be visible otherwise, of course). You now need an "onChange" event coding on the slider (just click on the three dots next to the slider and select "Edit scripts".
Here´s an easy coding for the onChange script:
if (Slider_1.getValue() >= 50) {
InputControl_1.setVisible(false);
} else {
InputControl_1.setVisible(true);
}Please notice, that you can improve this, by not hiding an already invisible input control, but I wanted to keep it simple here.
If the solution answers your question, please set it to "accepted solution". Thanks.
Kind regards,
Denis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.