url parameter overrides shortcode post_id

Support MB Frontend Submission url parameter overrides shortcode post_idResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44809
    Nicholas CoxNicholas Cox
    Participant

    Hi

    if i use the following shortcode
    [mb_frontend_form id="dc" post_id="1" edit="true" submit_button="Update" ajax="true"]

    then if I add the url parameter with an id of 2. the form uses this id instead of the one specified in the shortcode, is there a way to stop/prevent the url parameter being used for one form?
    rwmb_frontend_field_post_id=2

    thanks

    Nick

    #44821
    PeterPeter
    Moderator

    Hello Nick,

    It isn't possible. When the URL has the parameter "rwmb_frontend_field_post_id", it will replace the attribute post_id of the form shortcode.
    You can check the function populate_via_query_string() in the file /mb-frontend-submission/src/FormFactory.php to understand the workflow.

    #44822
    Nicholas CoxNicholas Cox
    Participant

    ok i will try this thanks

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