Forum Discussion
Marc_Laf
Aug 20, 2020Iron Contributor
Cancel a form based on answers?
Is it possible to cancel the form based on answers from branching? For example if you answer Yes to a question it continues on but if you selected No it would cancel the form and not let you submit?...
- Aug 20, 2020
Marc_Laf no there is no way at all to do that with Forms.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
RobElliott
Aug 20, 2020Silver Contributor
Marc_Laf no there is no way at all to do that with Forms.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Marc_Laf
Aug 20, 2020Iron Contributor
Thanks Rob.
- MSUM_CliffertonJul 21, 2023Brass Contributor
Marc_LafThe answer to this has either 1) changed since 2020 or 2) is more complicated than Rob stated.
Using Branching and Sections, you can make Forms do this.
- Create a new section with title and subtitle explaining why the survey ended.
- Use branching to indicate to go to the section based on response.
- At end of section, use branching to go to the end of the form.
- Be sure to use branching to tell what to do if the survey didn't end, so that respondents don't accidentally end up on the "survey ended" section.
Here are some pictures:
This first one shows general question setup.
This next one shows the branching required to make it work.
I'm sure you are already done with whatever project, but wanted to update for future visitors.
- TeddyNov 10, 2023Copper ContributorThis helped immensely - thank you!
- Naomi75Nov 09, 2023Copper Contributor
I have inserted a section advising the responder cannot progress any further and then added branching directing them to an additional section which says they must go back and consult with their manager if they selected "no". I've then added branching on that new section to "end of form", but the Submit button is at the end of the form - so they can still submit. It doesn't stop the form.
- Rob_ElliottNov 14, 2023Bronze Contributor
Naomi75 indeed, my earlier answer still applies; there is no way within the form to cancel it and whatever you the submit button will still be there. You could suggest they close their browser tab but that's not really a solution.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP UK (and classic 1967 Morris Traveller driver)
- Marc_LafJul 21, 2023Iron Contributor
MSUM_Clifferton thanks for the update on this.
I wish I could remember what I was using Forms for that prompted this question though! haha.