cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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
 
Highlighted
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
Community Manager
Microsoft Power Automate | Power Virtual Agents
Are YOU a member of a Power Platform User Group?
Fill out This Form to claim your Community User Group Member Badge!
Highlighted
Frequent Visitor

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. 

Highlighted
New Member

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

Hi@ 

 

 

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,337)