I have 3 conditions based on my Boolean values.
Condition 1: When the value is false
, the user should get a blank form
with a submit button
Condition 2: When the user submits the form, the Boolean value is set to true and the form becomes a read only form, so that the user cannot edit the form and resubmit. At this point of time, the submit button is hidden.
Condition 3: Suppose it is absolutely necessary to make an update, the
owner of the application can go to the database and change the value of Boolean bit to false, so that the form becomes editable. But at this point of
time, I need the Submit button
to change to Modify button
.
So there are 3 possibilities here with only 2 Boolean values. So my question is, how can I know between the two false calls (Condition 1 and Condition 3)
that which one is Submit call i.e the user is filling the form for the first time and which one is Modify call i.e user is updating the same form? Any help is appreciated. Thank you.