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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (4,739)