Support » Plugin: Google Forms » Hide Google Doc Source & How to Use in Page template?

  • Resolved Phil

    (@owendevelopment)


    Hi,

    I’m using your plugin only to pull in an existing Google Form into my site. I have two questions:

    1. I notice that the source of the form URL is outputted in the html output of the page – is there anyway to hide this URL? The best option would be to be able to embed a private form, but hiding the URL will do the job for now.

    2. I would like to use the google form shortcode in a page template. It is pulled dynamically from a custom field repeater (for the forms’ key):

    <?php echo do_shortcode("[gform form='https://docs.google.com/spreadsheet/pub?key="' . the_sub_field('google_doc_key') . '"#gid=2']"); ?>

    …but this doesn’t work. I get ‘Unable to process Google Form short code.’

    Thanks for any advice.

    http://wordpress.org/plugins/wpgform/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    If you define your Form within WordPress using the custom post type the URL is never output int he page. The “gform” shortcode has been deprecated in favor of the “wpgform” shortcode. Using the Custom Post Type is (a) much easier and (b) where all of the nice features are. I haven’t added any new features to the “gform” shortcode implementation in a long time.

    If you are getting the Unable to Process Google Form shortcode message it means the URL isn’t working. Have you tried building up the string outside of the call to do_shortcode and then passing it in as an argument?

    Phil

    (@owendevelopment)

    Okay, so just testing this out using the Custom Post Type and “wpgform” method.

    I’m still getting the original source URL coming out in the posts source. Looking at it, it’s not actually coming out in the form data. Rather, it appears in 2 places:

    1. In the link to other spreadsheet in the same workbook
    It’s coming as links in the ‘listview’ which are links to the other sheets in the same workbook. Can I remove this from being printed out? Obviously I can do with CSS, but it’ll still be in the source so removing it altogether would be better/more secure for me.

    2. In the ‘Report Abuse’ link below the Google Form. Can this be removed?

    Any help would be appreciated, this is a great plugin and I’d like to get it perfectly for my project. I’m so close.

    Phil

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Can you point me to the page so I can look at it? If you want to move this offline, you can fill out my Help and Support form or simply drop me an email at mpwalsh8 at gmail dot come.

    Phil

    (@owendevelopment)

    Hi Mike, just emailed you.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Can you try WordPress Google Form v0.59-beta-3 and see if it resolves your problem?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Marking this resolved as I released v0.59 today.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide Google Doc Source & How to Use in Page template?’ is closed to new replies.