PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Passing data to non wordpress application

  1. chrisuk
    Member

    I am trying to add a quick login form on my blog for a application that requires a username and password. The application has hardcoded form names, namely 'memberid' and 'password.'

    In Gravityforms I can see how you pass data to external urls but the problem seems to arise because I can't change the field names in Gravity Forms to match those that the application requires.

    Instead they are called stuff like 'input1' and so one which my application won't recognise.
    http://www.flirtybe.co.uk/cms/members-login

    Is there anyway to do this?

    Thanks
    Chris

    Posted 14 years ago on Tuesday August 10, 2010 | Permalink
  2. The only way to pass data to an external url without writing custom PHP is using the confirmation redirect. This is under Form Settings and then the Confirmation tab. You can then build a custom query string and name the fields whatever you want when building your custom query string. You then use the form field variables to pass the value of that field using the form field variable drop down.

    However, the login form for the application you are using would have to be requesting this data from the query string. So it's not going to automatically populate these fields without writing some custom code to interact with the 3rd party application.

    Any reason you are trying to use a Gravity Forms form to redirect to another login form where they would still have to click login in order to login? Seems like an extra step that is unnecessary and puts them more clicks away from actually logging in.

    Posted 14 years ago on Tuesday August 10, 2010 | Permalink
  3. chrisuk
    Member

    Hi Carl

    No I don't want to redirect them to the external login page to login there. I want them to be able to login directly from the gravityforms login that I am trying to create. Then I can add the login box onto my blog which is what Im trying to do. So user enters username and pwd and bingo they are logged into the app.

    In order to to that I need to be able to set the gravity form field names for username and pasword so that they match those required by the external app. That is the problem you see the field names don't match what is required so it won't work.

    Can this be done?

    Regards

    Chris

    Posted 14 years ago on Tuesday August 17, 2010 | Permalink
  4. No, the field names cannot be changed. They are generated dynamically by Gravity Forms.

    However, if you know what you are doing you can use available API hooks to take this information and when the form is submitted repurpose it and submit it again to whatever form handler you need to handle the login. This is possible, although becomes problematic if the user enters the wrong login and this makes validation difficult.

    Posted 14 years ago on Tuesday August 17, 2010 | Permalink