Input Widget, not setting to zero
Question
Application Type
Reactive
Service Studio Version
11.11.14 (Build 47936)
Platform Version
11.14.0 (Build 32648)

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

TestInput.oml

mvp_badge
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.