cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ChazBolt
Level: Powered On

When using the answer from a multiple choice question on a Form to fill in a PDF

Hi,

 

I am using a Microsoft form to fill in answers on a fillable PDF.

 

One of the questions is a choice question (as opposed to a fill in your own answer text question) and when the Form outputs the answer from a multiple choice question, it outputs it like this: ['Answer']

 

THis makes a problem when trying to use the answer to fill in a PDF, becuase in JSON it reads:

 

{
    "FillSpace": "["Answer"]"
}

However, this creates an issue because the second " closes it. So its reading that it should fill the PDF with just [ and then its reading the A as an unknown. So it fails. 

 

How can i fix this?

 

4 REPLIES 4
Community Support Team
Community Support Team

Re: When using the answer from a multiple choice question on a Form to fill in a PDF

Hi @ChazBolt,

 

Do you want the answer from a multiple choice question like   ["Option 1","Option 2"]    would be formated to   Option 1,Option 2  , so you could fill in answers on a fillable PDF?

 

If yes, please refer to screenshot below to create the flow:

Capture.PNG

 

The schema in the Parse JSON action as below:

{
"type": "array",
"items": {
"type": "string"
}
}
 
The flow would run successfully as below:
Capture.PNG
Capture.PNG
 
Best regards,
Alice
 
Administrator
Administrator

Re: When using the answer from a multiple choice question on a Form to fill in a PDF

Hey, @ChazBolt!

Thank you for posting on the Flow Community Forum! It appears as though @v-yuazh-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
ChazBolt
Level: Powered On

Re: When using the answer from a multiple choice question on a Form to fill in a PDF

Due to other projects i have not gotten to fully test this out. It helped me understand more of what i could, but i have not yet come to a perfect solution. 

Atiyah
Level: Power Up

Re: When using the answer from a multiple choice question on a Form to fill in a PDF

Hi@ 

 

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,623)