cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChazBolt
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
v-yuazh-msft
Community Support
Community Support

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
 
GabrielStJohn
Microsoft
Microsoft

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
Power Automate | Power Virtual Agents
Super User Program Manager



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. 

Anonymous
Not applicable

Hi@ 

 

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,562)