Hi All,
I have a requirement to set default values for inputs on screen from database, but if the default is zero and i click on checkbox to apply default to the input field, 0 is not reflected in the filed .
The input type is number.
Regards,
Shivangi
Hi @Shivangi Thakur,
Onclick checkbox action, you have to assign the input variable value to 0. then it will set
Hello Shivangi Thakur,
I dont know the main reason why that append, maybe something regarding plataform.
I have made a simple hack:
https://personal-gxzlvs5j.outsystemscloud.com/Tests/TestInput?_ts=637710289810392459
Also the OML in attach.
Hope it helps,
Nuno R
Hi Shivangi,
Refer to this post which address the same issue https://www.outsystems.com/forums/discussion/33763/input-widget-doesnt-display-zero-value/#Post120598
Or else I would suggest the below-mentioned options..
Option1: Set the variable mapped with the input type to Text data type
Option2: Inject 0 value explicitly using JS
I hope this helps you!
Kind regards,
Benjith Sam
did you get the solution if yes please mark it solved.
Stolen image:
Solution stolen from here