Mandatory Inputs


It should be mandatory for the user to enter the inputs. In other words, the user should not proceed without entering any input. how do i fix this?


Good morning @Batuhan,

I don’t quite get your question as your textfields are already populated with the default value of the respective component (myWidth and myHeight).

Suggestion: you might also want to validate the user input in your components, especially if there are any min/max values for the width and height.
Here’s an example where the width defaults to 114 and the min/max values are 100 and 200 respectively.
(Input or 114).atLeast(100).atMost(200)

Does this answer your question?