Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How to add a Customer Voice form to a Sharepoint modern page

Posted on by Microsoft Employee

Hi all,

I have created a customer voice form and am attempting to add it to a Sharepoint modern page via the Microsoft Forms web part.  I am getting the error - This is not a valid form link. Please copy a URL from Microsoft Forms.

The Learn more link just goes to a page showing how to add forms the old way - using Microsoft Forms - forms.office.com...

Am out of luck with this right now?  I can use an iframe if necessary.  I was just hoping there was some way of making this work using the forms web part.

  • Suggested answer
    Welly Lee Profile Picture
    Welly Lee on at
    RE: How to add a Customer Voice form to a Sharepoint modern page

    You may use SharePoint embed web part and use the following 

    <iframe height="<height_in_pixel>" width="<width_in_pixel>" src="https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=<survey_id>&embed=true&compact=<is_compact>&lang=<language_code>&ctx=<survey_variable_object>"></iframe>

     where:

    height_in_pixel: value in decimal for example: 500 or 600

    width_in_pixel: value in decimal for example: 500 or 600

    survey_id: Id of survey

    is_compact: This is Boolean value, true or false.

    • True: spacing among elements will be less as compared to normal mode, also the structure will be left aligned.
    • False: it is normal mode where everything will be in standard size and layout.

    language_code: code of language in which the survey need to be rendered. For example: it – Italian, hi – Hindi, en – English

    survey_variable_object: Object of survey variable where information can be passed contextually. So, if customer has created the survey variables from Customer Voice, and used inside questions on designer page, so value of those variables can be controlled from this object at run time while rendering the response page.

    Object: {"First Name":"first_test","Last Name":"last_test","locale":"locale_test", "test":"testing_new_variable"}

    Note: Once the survey variable object values are filled, it need to be URL encoded before putting in Iframe structure. So instead of putting the Raw object in Iframe, user need to put the Encoded one.

    Raw: {"First Name":"first_test","Last Name":"last_test","locale":"locale_test", "test":"testing_new_variable"}

    Encoded: %7B%22First%20Name%22%3A%22first_test%22%2C%22Last%20Name%22%3A%22last_test%22%2C%22locale%22%3A%22locale_test%22%2C%20%22test%22%3A%22testing_new_variable%22%7D

    For example:

    <iframe height="640px" width="480px" src="">forms.office.com/.../ResponsePage.aspx

  • CChapman Profile Picture
    CChapman 5 on at
    RE: How to add a Customer Voice form to a Sharepoint modern page

    Hi,

    I tried this yesterday and it partially worked, only it created a typo in the heading of my alternate language version which was not actually in the CV file.  So I took it down off the Sharepoint but now today it doesn't work at all and when I paste it into my browser I get a 404 page not found message.  Any more clues please?  Thanks,

  • Suggested answer
    Hannah_93 Profile Picture
    Hannah_93 5 on at
    RE: How to add a Customer Voice form to a Sharepoint modern page

    I found that if I swap out the "customervoice.microsoft.com" section of the URL for "forms.office.com/FormsPro" it works a treat using the Forms webpart.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans