Forum Discussion

YueZhao08's avatar
YueZhao08
Copper Contributor
Jun 28, 2024
Solved

Pass parameter via URL to fill the field in form

I have created a survey via Microsoft Forms. This survey should be displayed as webpart in different SharePoint Teamsites. Is it possible to show different content in each teamsite? e.g. via URL of webpart to pass parameter to form to fill in one field automatically?

4 Replies

  • seurp's avatar
    seurp
    Copper Contributor

    Yes, we also have the the demand to call a form in MS forms with predefined values (but dynamically using input parameters).

    Background: We are calling the form link from a (in-house developed) tool. Our tool already knows some of the details and when calling the link we would like to prefill the form as much as possible. With this we avoid much double work and the users can already use a prefilled formular. 

    The easiest way would be if we could use URL parameters to prefill the form.

    • YueZhao08's avatar
      YueZhao08
      Copper Contributor
      hi Dingkun,
      thank you for your suggestion. It works in principle, aber not reliable, because the Prefill data will be saved in browser cach. That mean, if the user make feedback for different surwey in short time, the prefill value shows always the value from first URL. I hope, this feature will be improved in the furture.
      Thank you for your answer again!
      • seurp's avatar
        seurp
        Copper Contributor

        Yes, we also have the the demand to call a form in MS forms with predefined values (but dynamically using input parameters).

        Background: We are calling the form link from a (in-house developed) tool. Our tool already knows some of the details and when calling the link we would like to prefill the form as much as possible. With this we avoid much double work and the users can already use a prefilled formular. 

        The easiest way would be if we could use URL parameters to prefill the form.

        UPDATE: This is how it should work: https://www.youtube.com/watch?v=0NJwsdyWcqo 

Resources