web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with function to ...
Power Automate
Unanswered

Help with function to replace text from Form

(1) ShareShare
ReportReport
Posted on by 8
Hi everyone! 
 
So I have an  MS Form & Flow combo set up for my work that: 1) asks which group you belong to, 2) populates multiple choice selections belonging to that group (specifically with an option for other/not on the list), 3) has you type in your 'Other/Not on the list' option if applicable via a branch question, and then 4) begins a Flow to populate the answers into a MS Word Template and fill out a form, which gets emailed to everyone.

Been using it for a while now and it's worked great! However, in adding the 'Other/not on the list' branch, I've run into a problem where the template plugs in the 'branch' answer, but ALSO the 'Other/Not on the List' selection (see output below).
 
 
Example Form below:
 
 
My attempt has been to first use Initialize Variable to plug in all the possible Form dynamic answers into one variable (TitleVariable = Group 1 event, Group 1 OtherEvent, Group 2 event, Group 2 OtherEvent, etc). That part works great!
 
 
However, since 'Other/Not on the list' IS a choice from the Form, it also plugs that into the template when they use the branch, like the output shown previously.

I'm trying to make an expression to remove 'Other/not on the list' from the string, but my formula is failing me! Here's what I have so far and I'm not sure what I need to replace:
 
if(equals(variables('Title'),'Other/Not On The List'),replace(''),variables('Title'))
 
 
However my output is still showing the branch question AND the 'Other/not on the list'. I feel like I'm missing something simple from my formula and would appreciate any help anyone might know :) 
 
Thank you again and I hope everyone has a great day!
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    HI,
     
    Apologies, I am not following.
     
    What Template? 
     
    What is this?
     
    If you look at the answers coming in from the Form is that where you got this? Have you verified it just as it came in?
     
    Sorry not understanding with all the details what/where
     
     
     
     

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard