Update - Combine Custom Post With Details from another Post Type

Support MB Frontend Submission Update - Combine Custom Post With Details from another Post TypeResolved

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #37058
    jofori_anum@yahoo.com[email protected]
    Participant

    Hi,

    With MB Frnt End Submissions, can you update/combine say a "Job" Custom Post Type (CPT) with details from a "Quote" Post Type?

    Use Case:

    (1) We have Quotes in the system and we want to create a Job from a Quotation.
    Otherwise the User has to print off the quote or use 2 screens to copy the data from the Quote to the Job post.

    (2) User Post Type needs to copy data into "Member Works"( CPT ) which takes data from Users and Jobs (CPT).

    (3) "Member Works" Custom Post Type - Additional we have a Start Time (DateTime) and End Time (DateTime) fields for the work a user has completed for a job on a particular day - we need to calculate the difference in Hours and place into "Total Hours" field
    in the "Member Works" form and save as a "Member Works" Custom Post Type.

    Is this easily possible?

    Kindest regards

    Jay

    #37059
    jofori_anum@yahoo.com[email protected]
    Participant

    Sorry I forgot to mention we are also wan to use alot of MetaFields especially Repeaters in front end submissions, can it handle/update the Repeaer fields saved as Meta Field data aswell in the above use case?
    Creating a "Job" Custom Post Type from a "Quote" CPT and pre-populating Form fields when we need to update a CPT?

    #37078
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for reaching out.

    It is beyond the scope of support of Meta Box to do these steps with a few clicks. It is possible but needs a lot of custom code to update the field value and data of a post to another. For more information, you can follow the documentation to use the form hooks https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1
    and refer to this topic https://support.metabox.io/topic/replace-post-publish-date-with-custom-field/#post-35515

    If you are not familiar with coding, you can create a customization service request, follow the support policy https://support.metabox.io/topic/support-policy/

    #37118
    jofori_anum@yahoo.com[email protected]
    Participant

    HI,
    rather confusing... Front End Profile and Forms...Using Metabox Builder

    I am trying out the first stage, which is to create User Update Form.
    Subject: The Password fields...
    I want to add Password fields to my Front End form so they look like they belong and NOT a seperate section as created by using ID - rwmb-user-info

    (1) This creates a seperate section labelled Info (which is not meaningfull)
    How do I change that to some other name?

    (2) Each Metabox ID has a label and when put on a User Profile Form page, creates multiple labels/Titles (1 for each Metabox)
    I only need a Title for the 1st Metabox (section)
    How do I hide the labels/Titles of all the other displayed Metabox IDs on the Front End Form?

    (3) When I want to show you what I am talking about, how do I submit an image for support to view my problem visually?

    Kindest regards
    Jay

    #37119
    jofori_anum@yahoo.com[email protected]
    Participant

    Please NOTE - your emails to me state **THIS IS AN AUTOMATIC EMAIL - PLEASE DO NOT REPLY**
    Your last email to me is from [email protected]

    #37142
    Long NguyenLong Nguyen
    Moderator

    Hi,

    1. There is no option to change the meta box label "info" of the password form. I will inform the development team to consider supporting a filter hook to change this text.

    2. You can create other field groups (meta boxes) with blank titles and add these meta box IDs to the profile form. Please read more here https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form

    [mb_user_profile_info id="meta-box-id1,meta-box-id2,meta-box-id3"]

    3. Please upload your image/screenshot to shared hosting, for example https://imgur.com/, and share the image URL in your reply.

    #37146
    jofori_anum@yahoo.com[email protected]
    Participant

    2)
    I tried removing the Title "Extended" from the Edit Field Group-> Add Title field
    but on the front end it replaces it with the words "Meta Box title"

    Or do you mean something else?

    https://imgur.com/a/Kg3pxcC

    #37147
    jofori_anum@yahoo.com[email protected]
    Participant

    https://imgur.com/a/cjdgeJz

    (4)
    Backend Profile and Front End Forms:
    Metabox Builder Not saving anything for User Profile ('Extended' custom fields) in the Custom table?
    Setings: selected these...
    Save Data in custom table
    Custom table - aa_user_settings_meta_mb
    include table Prefix
    Create Table Automatically
    The Custom Table is created but nothing happens - disabled all plugins, still no luck.
    Any ideas?

    #37148
    jofori_anum@yahoo.com[email protected]
    Participant

    To save time:

    (credentials removed)

    https://imgur.com/a/3L2vdeS

    #37199
    Long NguyenLong Nguyen
    Moderator

    Hi,

    1. Unfortunately, there is no way to remove the meta box title in this case. You can use this custom CSS code in Appearance > Customize > Additional CSS, to hide it

    .rwmb-meta-box h2 {
        display: none;
    }

    I will inform the development team to consider supporting this case in future updates.

    2. It looks like there is an issue with your database. I've tried to add a new table name in the field group to save the field value to another table but it is not created in the database. You can try to contact your hosting support to ask for help or save the field value to the standard table of WordPress (aa_usermeta).

    #37204
    jofori_anum@yahoo.com[email protected]
    Participant

    Hi,

    I don't understand how you came to that conclusion...
    As I mentioned before, the tables are created...So no need to contact my Host at this point.

    Here is your table in PHPMyAdmin (aa_my_custom_table123) and another I created today (aa_my_custom_table888)
    https://imgur.com/a/n67HGTZ

    So can you please check again?

    Kind regards
    Jay

    #37233
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Sorry, somehow the custom table is not created when I test the feature on your site at that time. I found the issue on your site is, that you need to save the custom field value to the custom table for all field groups on a page. If I set the field group User Profile save data to the custom table my_custom_table888 then all custom fields saved value as well.

    Can you please confirm this?

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