
Announcements
I have SubmitButton1.
I have NewRoleForm.
I have Gallery1.
The DefaultMode of NewRoleForm is Edit.
I have an arrow in Gallery1 that contains EditForm(NewRoleForm).
I have a New Role button that has NewForm(NewRoleForm).
I want the text in SubmitButton1 to change when the form mode changes; If form mode is Edit submit button should show 'Submit Update', if form mode New submit button should show 'Submit New Role'.
I've tried the following, but it didn't change the text.
- If(NewRoleForm.DisplayMode.Edit,"Submit Update","Submit New Role")
Hi @Phineas
The formula you provided seems to be almost correct, but you need to use NewRoleForm.Mode instead of NewRoleForm.DisplayMode.Edit to determine the current mode of the form.
Try this
If(
NewRoleForm.Mode = FormMode.Edit,
"Submit Update", "Submit New Role"
)
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.