Hi. I am currently working on a two-page form. I noticed that when the form is in View mode, the button is visible and not set to disable- but when I click on it, nothing happens. It should navigate on the second page of the form. Any fix on this? Thank you!
Hi @joieeee09
I'm surprised that setting the DisplayMode of both the card and button didn't work for you. Do you have formula that switches the form between edit and view modes by calling the EditForm and ViewForm functions?
Thanks, everyone. I set the Display Mode of the datacard to Edit as well as the button but still didn't work. As a resort, I had to put the button out of the Form page and it worked.
Hi @joieeee09
If you explicitly set the DisplayMode property of your card (DataCard1) to Edit, the call to Navigate in Button4_2 should work successfully even when the Form control is in View mode.
Sorry. The text formats were changed, it should not be in bold, underline, and italic. 😄
I already removed:
If(
Or(
IsBlank(DataCardValue17),
IsBlank(DataCardValue18),
IsBlank(DataCardValue19),
IsBlank(DataCardValue20),
IsBlank(DataCardValue21),
IsBlank(DataCardValue22),
IsBlank(Radio1.Selected.Value),
IsBlank(RichTextEditor1),
IsBlank(RichTextEditor2)), DisplayMode.Disabled,
If(
And(
Radio1.Selected.Value = "Other",
IsBlank(DataCardValue25)), DisplayMode.Disabled
))
Instead, I put SubmitForm(Page1) on the On Select of the button and Navigate(NextPage) on the On Success of the form. It does the same job which is to restrict the user to go to the next page without filling up the fields on the first page.
Now, on the Display Mode of the button, I put:
If(
Page1.Mode = FormMode.View, DisplayMode.Edit, DisplayMode.View
)
But still, I can't click on the button when in View mode.
@joieeee09 , Have you checked my previous response? Try this
Instead of using the IsBlank(DataCardValue17) use IsBlank(DataCardValue17.Text) if this is Input text. Do the same for all the other controls on the display mode of button.
Thanks,
ANB
Still not working. I have added If(Page1.Mode = FormMode.View, DisplayMode.Edit) on the Display Mode of the button but nothing happened.
@joieeee09 , Instead of using the IsBlank(DataCardValue17) use IsBlank(DataCardValue17.Text) if this is Input text. Do the same for all the other controls on the display mode of button.
-----------------------------------------------------------------------------------------------------------------------------
I hope this helps.
Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍
Thanks,
ANB
What's in the DisplayMode for the button? Your screenshot shows the datacard that the button is in, but the button has its own version.
WarrenBelz
146,788
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional