Giter Site home page Giter Site logo

Comments (13)

jimtrue avatar jimtrue commented on May 31, 2024 1

Notes regarding the filters for Editing existing record:

add_filter( 'gform_pre_process_1', 'add_my_edit_id_hook', 9 );`

function add_my_edit_id_hook( $form ) {

    add_filter( 'pods_gf_addon_edit_id', 'set_my_pods_gf_edit_id', 10, 6 );

    return $form;

}

function set_my_pods_gf_edit_id( $edit_id, $pod, $form_id, $feed, $form, $options ) {

    if ( /* whatever logic here */ ) {
        $edit_id = 1234;
    }

    return $edit_id;

}

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on May 31, 2024 1

I should have time for this soon, maybe this weekend. Sorry -- I've been hyper-focused on getting Pods 2.8 features built out.

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on May 31, 2024

Fixes #52

from pods-gravity-forms.

rpall avatar rpall commented on May 31, 2024

+1 for this

from pods-gravity-forms.

jboulhous avatar jboulhous commented on May 31, 2024

+1 for this

from pods-gravity-forms.

ericmil87 avatar ericmil87 commented on May 31, 2024

I can't figure out where do I place this. I want to create a edit page so the author of that pod item can edit it on the front end. How to do that?

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

This is an open issue. It's not actually available yet @ericmil87

from pods-gravity-forms.

rpall avatar rpall commented on May 31, 2024

Any updates on this? @jimtrue

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

@rpall I'm not the developer of this plugin. You would want to mention @sc0ttkclark ;)

from pods-gravity-forms.

rpall avatar rpall commented on May 31, 2024

Alright :) Any updates on this @sc0ttkclark ?

Thanks.

from pods-gravity-forms.

dklamie avatar dklamie commented on May 31, 2024

Hi, @sc0ttkclark, has this been implemented? Tnx.

from pods-gravity-forms.

jimtrue avatar jimtrue commented on May 31, 2024

Check out this code snippet which should help you out @dklamie @rpall @ericmil87
https://docs.pods.io/code-snippets/using-pods-gravity-forms-addon-to-edit-specific-id/

(sorry, left off the code snippet link)

from pods-gravity-forms.

dklamie avatar dklamie commented on May 31, 2024

Hi @jimtrue, thanks for the snippet. As I understand it would only work on the posts that we know ID's beforehand. Is there a way to dynamically populate the post ID?

Ie. we have a form that creates only one unique single post for each user; when the user fills out the form it creates the post, on every following opening of the form, the form checks the unique post id for that user and populates the fields.

from pods-gravity-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.