• Resolved rporter

    (@rporter)


    Hi Mike,

    I’ve got a brand-new, multipage form installed on this page: http://www.cbhconline.org/membership-form/

    It seems to work pretty well, but there’s a link at the top of the form that says “Request edit access”. I’m assuming that’s something new from Google, but when I view the source code, I don’t see a specific class associated with it. I could probably use the css “display: none” trick if I knew the class, but I’m not sure how else to hide that link.

    Any thoughts?

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

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

    (@mpwalsh8)

    That must be something new, I will take a look when I have my computer later today. All I have with me right now is my iPad and I can’t see anything useful with it!

    same problem on my webpage πŸ™

    Plugin Author Mike Walsh

    (@mpwalsh8)

    This is pretty odd. It looks like something Google has added. When I look at a raw form the link has a class which I am guessing I am stripping off during some of the HTML clean up when I get the form HTML. I’ll need to look at this closer than I can right now between flights home. I should have some time to look at it in the morning.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Can you tell me what sharing permissions you have on your form?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I made a change when I got home tonight although I don’t have high hopes that it will fix the problem. However, if one of you would like to test it and report back, that would be much appreciated.

    wpGForm v0.53-beta-1 download

    Thread Starter rporter

    (@rporter)

    I will try to test this later today if I have time. As far as permissions go, the associated spreadsheet is only shared with one other staff person. It is published to the web.

    I did find that when I looked at the source code for Google’s live version of the same form, there’s a link tagged “edit this form” which has the class “ss-edit-form”. It seems to occupy the same place in the code as the link I see on our page. I wonder if that’s the class the plugin is stripping out?

    Here’s the live form page: https://docs.google.com/a/cbhconline.org/forms/d/1AbToDvVuCJW4bh-Yh3WDDFnYrUcQEBhBh555_dbk_18/viewform

    Plugin Author Mike Walsh

    (@mpwalsh8)

    It is confusing as to what Google is doing here. If I click on the link to your form, I do not see the “Edit this Form” link. However, if I do the same with some of my own forms, I do see the link.

    I thought it might have something to do with me being logged into Chrome but forcing a logout didn’t seem to make any difference. What is really odd is if I retrieve the URL using wget the “Edit this Link” text does not appear in the result nor does it appear in the returned content of wp_remote_get() which really has me stumped.

    I am looking at the page on your site again and there is something very odd about it. There are two <style> sections which appear just before the DIV which holds the Google Form. One of the <style> sections holds a bunch of Google Forms CSS definitions which is already loaded in the document header do they’re redundant.

    The second <style> tag is more concerning because it contains what appears to be a poorly formed shortcode which links to the “Edit Link” we’re chasing down.

    Can you look at the source for the page where you have the Membership Form to verify there isn’t some rougue HTML in the page content? (Use the HTML editor view instead of the Visual Editor view).

    Thread Starter rporter

    (@rporter)

    That second style tag was something I was trying based on something I read about using css to hide specific text/links. It didn’t work and I have removed it now.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    You have several Javascript errors on your page which should be fixed as they may prevent WordPress Google Form from running correctly. There are at least three instances where you use the $() jQuery shortcut notation which you shouldn’t do in WordPress because it potentially causes jQuery conflicts (see this for initializing jQuery with no conflict).

    <script type="text/javascript">
    
    $(document).ready(function() {
    	$("#GoogleForm").validate({meta: "validate"});
    });
    </script>

    I would fix these problems first as it will make chasing the other problem easier to track down.

    Thread Starter rporter

    (@rporter)

    Okay, I will try to get those cleaned up later today.

    Thread Starter rporter

    (@rporter)

    I think I’ve fixed or eleminated the offending code, but I’m having to do this quickly in between other tasks. Hopefully I got all of it.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I spent some time looking at this again this morning and all I have determined is:

    • The only time I see the “Edit this Form” link is when I am logged into Gmail. If I logout, it goes away.
    • I cannot get it to ever appear retrieving a form using wget.
    • I cannot get the link to appear on my own web site like it appears on yours.
    • I am running out of ideas to try.

    It almost seems like your web server has your Google credentials cached so when the server makes a request for the form from Google, it knows you own the form and it returns it with the “Edit this Form” link. This doesn’t make any sense though as I don’t see how wp_remote_get() could do that.

    Have you had a chance to try running the beta code I posted? I’d be curious to know if the change I made has an effect. If the “Edit this Form” link is coming through wp_remote_get() then with the change I made the “ss-edit-link” class should no longer be stripped out.

    Thread Starter rporter

    (@rporter)

    Sorry, I’ve been swamped with other things for the last day or so. I will upload the beta now and report back.

    Thread Starter rporter

    (@rporter)

    Okay, the beta code seems to fix the problem, at least on my desktop. I will recheck it on a different computer later today, but it’s looking good from here. The form works, the redirect works, and the email notification works. Not sure what the issue was, but I’ll take it. Thanks so much for your quick response, Mike!

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Let me know once your other test is complete and if all is well, I will push out an update.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘"Request edit access"?’ is closed to new replies.