getting post id by echo is not working front end submission form Bricks builder

Support MB Frontend Submission getting post id by echo is not working front end submission form Bricks builderResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44192
    Leo HermantoLeo Hermanto
    Participant

    I am not sure if this is a bug issue or there is something I miss.

    I wanted to get post_id dynamically so that user can edit the post they have posted before.

    in front end submission form under post id, I wrote {echo: get_current_user_post_id('family-details')}
    In the normal basic text element, this echo the post_id I want correctly 1285

    but in the submission form I get error: "you are not allowed to edit this post" whereas if I put the absolute post ID 1285, it works correctly.

    I tried the code in code block and it also output the correct post_id so the function is working. it just does not work when this echo is placed in the metabox frontend submission form,

    Appreciate if someone can see where I have gone wrong or if this may be a bug either in Bricks Builder or in Metabox

    #44198
    Leo HermantoLeo Hermanto
    Participant

    An update to this issue from Bricks Builder, they mentioned that this could be a bug from metabox as it is not parsing the dynamic data tag on form submission element integrated with bricks builder. as the dynamic data tag is working fine with all other elements like basic text, and even bricks form element.

    #44208
    PeterPeter
    Moderator

    Hello Leo,

    When you edit the post in the frontend, you can get the post ID via the variable $_GET['rwmb_frontend_field_post_id'], it is added to the URL parameter.

    If it doesn't work, please share some screenshots of the issue on your site.

    #44259
    Leo HermantoLeo Hermanto
    Participant

    Hi Peter,

    Yes using this method works fine.

    But when you do the echo inside the front end submission element in the bricks builder, this does not work which means it is not parse correctly as indicated by bricks builder support.

    My issue is solved using the url parameter.

    However it would be nice if the integration with bricks builder can work too.

    Thanks for your answer.

    Best regards

    #44265
    PeterPeter
    Moderator

    Hello,

    The integration between Meta Box and Bricks is maintained by the Bricks team. Please reach out to them to get further assistance.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.