Embedding a survey onto a page on a Drupal site

Options

Hi,

I've referred https://kb.blackbaud.com/knowledgebase/Article/63194 and according to step 6, I copied the page view source code <form> </form> section and pasted it on the Drupal page, but when I hit the submit button without filling any fields, it redirected without any validation to the LO PageBuilder form, else it goes to the site on NEXTURL.

Any help is appreciated, thanks in advance!

Tagged:

Comments

  • Hi, Thara!

    That sounds like expected functionality for a “scraped” survey. When scraping the Survey to another (normally off LO) website it doesn't have any sort of on-page validation of the fields. If there is an error when processing it should direct you to the form and I believe whatever fields you did fill out will be populated. Otherwise, if all fields are valid it would submit the Survey and then take you on to the URL specified in the NEXTURL parameter.

    If you wanted validation pre-submission you would need to set that up on the site you've pasted the form into. The other option, which I will warn you doesn't represent any less work, would be to use the API to submit the form directly from your site instead of redirecting the user to Luminate Online to submit.

    You can find more information about the Survey API here:

    There is also newer documentation (presentation has been updated) of the API but I cannot locate that link right now. Perhaps someone else can if you're interested in it.

    Hopefully that answers your question, even if the answer is the one you hoped for. :)

    Thanks,
    Richard

  • Thanks a lot Richard.

Categories