205
Views
3
Comments
Solved
How can i show empty in form fields ?
Question

I have a form and input text fields in it . to hold the value of text field I gave it a aggregate but when ever I start my application the fields are field with the data inside aggregate . how can i show empty fields form  

2021-06-02 20-50-04
Márcio Carvalho
Solution

So, if you are using an aggregate to hold values on inputs, you will get the values of the first record from the aggregate. What you can do is filter on the aggregate of the record that you are trying to update or create. Or if you want to clear just one input and not all the inputs I think that the best thing to do is create a variable for the input that will not receive any value from any aggregate ju7st from what the user puts on the input. And then when you want to save you assign the value from the variable to the aggregate that you are using to save data.

UserImage.jpg
Pratik Giri

passing a local variable worked thank you

2025-04-16 10-58-33
Priyanka Babar

Hello Pratik

In aggregate you have to use filter i.e you have to use id=nullidentifier()

Regards

Priyanka S


2021-06-02 20-50-04
Márcio Carvalho
Solution

So, if you are using an aggregate to hold values on inputs, you will get the values of the first record from the aggregate. What you can do is filter on the aggregate of the record that you are trying to update or create. Or if you want to clear just one input and not all the inputs I think that the best thing to do is create a variable for the input that will not receive any value from any aggregate ju7st from what the user puts on the input. And then when you want to save you assign the value from the variable to the aggregate that you are using to save data.

UserImage.jpg
Pratik Giri

passing a local variable worked thank you

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