Custom field Generation is not working

Support MB Frontend Submission Custom field Generation is not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43453
    Salony MohantySalony Mohanty
    Participant

    Hi - i am trying to gnerate a custom field on submission of a front end form to create custom post with field group webfunnelsetupdetails2:

    add_action( 'rwmb_webfunnelsetupdetails2_after_save_post', function( $object_id ) {

    if ( isset( $_POST['funnel2funneltitle'] ) && isset( $_POST['funnel2admin_email'] ) && isset( $_POST['funnel2domain'] )) {
    $value = $_POST['funnel2funneltitle'] . $_POST['funnel2admin_email']. $_POST['funnel2domain'];
    update_post_meta( $object_id, 'modifiedpostid', $value );
    }

    } );

    But the new custom field is not being generated.

    My metabox definition is in pastebin
    https://pastebin.com/8SRGSfRR
    Password: YkYfdubTuX

    #43465
    PeterPeter
    Moderator

    Hello,

    I run your code on the local host and see the new field value is added to the database as well. If you want to display the field, please create a new field in the field group with the same ID.

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