• Hiya,

    Fantastic plugin! However, I’m having an issue with the form action on our homepage getting the wrong permalink-works fine on the rest of the site. I think it’s likely a permalink issue. Ideally, I’d like the form onsubmit to immediately go to the Thank you page instead of doing a postback and redirect.

    Environment:
    Created a custom form template using echo fm_form_start(); No custom actions being used.
    Using the API: fm_doFormBySlug()
    Using the same include file for the form throughout the site

    Form Broken:
    stage.supervalu.ie

    Form Working:
    stage.supervalu.ie/real-people/our-sponsorship/tidy-towns/tidy-towns-2011-winners/

    Observations:
    The form on the homepage seems to be pulling the permalink value from a content area of the page, rather than the page itself. Although there are no error messages, it’s also not posting to the DB, or emailing from the homepage. On all other pages this appears to function as expected.

    To reproduce, fill out the form and hit submit.

    Any suggestions would be appreciated! Thanks!

    http://wordpress.org/extend/plugins/wordpress-form-manager/

Viewing 1 replies (of 1 total)
  • Plugin Author hoffcamp

    (@hoffcamp)

    The form action comes from a call to get_permalink(). I’ll see if there is a way to figure out if this is a nested area, but I don’t know.

    If you want to set the action manually, you can do the following:

    fm_doFormBySlug( 'formslug', array( 'action' => 'yoursite.com/whatever' ) );
Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Form Manager] Form Action error… get_permalink() is confused’ is closed to new replies.