Announcements
What i would like to do is show a button if the using is adding a record, if it is not hide the button. Do you have any ideas how i can do an if state to check that status and then hide a button based on that status. Thanks
What do you mean by "if the using is adding a record"?
In any case you can set statuses with the UpdateContext command such as UpdateContext({UserAdding: true})
Then you can set the visibility of the button (its Visible property) to = UserAdding
That will work.
PS You can also leave the button visible but set Disabled to = !UserAdding
The Form control has a "Mode" property, which tells you whether the form is in Edit mode, or New mode.
You can set your button's Visible (or Disabled) accordingly. For example:
Form1.Mode = FormMode.Edit
Hope this helps 🙂
Yes, this helps. I will try it. Thank You for your quick response.
By the way. I tried it and it works perfectly. Again Thanks.
Hi there
What if I want the button to be visible when Form1Mode = FormMode.Edit & when FormMode.New? It gives me an error when I try to combine the two formulas
Thanks for the answer @Abdou,I had a similar requirement in one of my application so I used the above syntax and it worked for me(In the image attached: IssueFirmTracker - is the form name)Syntax: Form_Name.Mode = Form.EditPlease like my response if it helped.
Try hiding it in 'view' mode, then it'll be visible in the other two; so in the 'Visible' setting:
If(Form1.Mode = FormMode.View, false, true)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional