I've edited a SharePoint list from and have added a submit button. The button is visible all of the time, but is only active ("clickable") when the form is in edit mode. In view mode, the button is visible but I can't click on it.
I have changed the DisplayMode to Edit rather than Parent.DisplayMode expecting that to force the button to always be active, but it hasn't worked.
Any advice would be appreciated!
Solved! Go to Solution.
Hi @Himmelblau_au,
Do you add the Button control within Edit form rather than outside the Edit form?
Do you custom a form for your SP list using PowerApps?
The user @ChadVKealey has faced same issue with you, please check the response within the following thread:
If you added the Button control within the Edit form, the parent form's DisplayMode property would override the Button control's and prevent the button action from firing.
As an alternative solution, please take a try to add the Button control outside the Edit form (within the screen), and set the DisplayMode property of the Button control to DisplayMode.Edit, then try it again, check if the issue is solved.
Best regards,
Kris
Hi @Himmelblau_au,
Do you add the Button control within Edit form rather than outside the Edit form?
Do you custom a form for your SP list using PowerApps?
The user @ChadVKealey has faced same issue with you, please check the response within the following thread:
If you added the Button control within the Edit form, the parent form's DisplayMode property would override the Button control's and prevent the button action from firing.
As an alternative solution, please take a try to add the Button control outside the Edit form (within the screen), and set the DisplayMode property of the Button control to DisplayMode.Edit, then try it again, check if the issue is solved.
Best regards,
Kris
Thanks (and sorry for the delayed response). That does work, however the button now floats when form scrolls, so I'll need to work out how I can make it move with the form.
Hey @Himmelblau_au
Did you find out? Would be interested to know.
Cheers
I encountered the same problem and I dealt with it by using these formulas to calculate the correct position where the button should appear over the form
X: form.X + datacard.X + J
Y: form.Y + datacard.Y + K
If you need to position it according to other elements, jsut throw the values in the formula like you would normally do
Edit: As of now, it seems to only work if the form isn't scrollable because elements position is fixed. I need it for a scrollable form, will try to find a solution
If button is in Edit Form then it will not be clickable in View mode, so there is an work around is to put button just above edit form but out side of edit form so it will be clickable regardless of any edit form display mode state but it will be ok until the form is not scrollable if it scrollable then the button remain fix and form get scrolling so there is also work around for it to use canvas and put whole edit form and button into it and remove edit form scroll by increasing it's height more than it needed. this is how you get button clickable and also scrollable with edit form.
But what if i want to be able to click a button that stays with a datacard on a form in display mode? I take it outside of the form and now it doesn't stay with the data item I want it to appear with. Grrrrrrrrrrrrr.
I agree that this is annoying. The button display mode should override the parent display mode.
It's all well and good but I don't even know what you mean by adding a button outside Edit mode.
I tried adding it so in the tree view (forgive me my naming convention) it appear above the SharePointForm, didn't work. I also tried to add it within a new custom Card. Same. What do you mean by adding it outside edit mode?
Your help is much appreciated.
User | Count |
---|---|
262 | |
110 | |
90 | |
54 | |
44 |