• Resolved Trident Marketing Anglia Ltd

    (@tridentmarketing)


    Hey, I’m embedding some php within a page, I’m need to display my form in an accordion – so I’ve got section that displays a form: acfe_form(‘branches-profile’); but I need to say show it the form for $child_user->ID

    How can I make my form show the details for different user id than the one logged in?

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    You can pass any abritrary data to your form during the render within acfe_form() , and then retrieve that data using the {form:my_data} Template Tag in the Form UI (for example, in your User Action: “Target” or “Source” settings).

    You’ll find more information about this logic in “Pass Custom Data” section of the Integration documentation here. Additionally, here you’ll find a guide showing an advanced use case where the profile_id is retrieved from the URL and passed to the Form here. This is similar to the logic you’re looking for too.

    As a side note, I would recommend to take a look at the whole PHP Integration documentation, it will give you a lot of tips and explanations for advanced usages.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.