• Resolved Sakshi Tyagi

    (@sakshityagi343)


    Hi,

    How can I customize this form’s fields > [wpcf_form] ?
    For e.g., I want to remove or add new fields in the existing form. How can I do that?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Sakshi Tyagi

    (@sakshityagi343)

    Hi,

    I haven’t heard back from you on this. Can you please tell if this is possible or not?

    Hello @sakshityagi343,

    You can override the default form by creating your own child theme and maintaining parent theme’s file and folder structure OR you can use our shortcodes to create your own form then assign them from the plugin’s settings.

    For a list of shortcodes you can visit the following doc links
    https://docs.themeum.com/wp-crowdfunding/wp-crowdfunding-shortcodes/
    https://docs.themeum.com/wp-crowdfunding/crowdfunding-shortcodes-2-0/

    Hello, I was trying to add additional custom field for the campaign form. I added the following code in Submit_Form.php located in plugin\wp-crowdfunding\shortcode

    $instaID = get_post_meta( get_the_ID(), ‘instagramID’, true );

    Note: I added already a custom field in the page and when I checked in my database, it is already existing.

    //new custom field
    $html .= ‘<div class=”wpneo-single”>’;
    $html .= ‘<div class=”wpneo-name”>’.__( “Instagram ID” , “wp-crowdfunding” ).'</div>’;
    $html .= ‘<div class=”wpneo-fields”>’;
    $html .= ‘<input type=”text” name=”wpneo-form-instaID” value=”‘.$instaID.'”>’;
    $html .= ‘<small>’.__(“Put the instagram ID”,”wp-crowdfunding”).'</small>’;
    $html .= ‘</div>’;
    $html .= ‘</div>’;

    When I made a test, the additional field displays and when i inputted the all the data and submit the form, it is successfully submitted but then the data is not save.

    Can you please advise why the data is not passed? I already used the get_post_meta function. Thank you in advance.. Looking forward for your reply

    Hello @gmunez,

    I apologize for the delay. Please follow these procedures to add a new field and save the filed data on the database.

    1. Add a field in the submit form –

    wp-crowdfunding/shortcode/Submit_Form.php

    2. Save field in the submit form –

    wp-crowdfunding/includes/woocommerce/Submit_Form.php

    3. Add Backend field in WooCommerce way –

    wp-crowdfunding/includes/woocommerce/Woocommerce.php

    4. Save Backend field in WooCommerce way –

    wp-crowdfunding/includes/woocommerce/Woocommerce.php

    5. Show Field Depends on where you want to show the data (Here are lots of files)-

    wp-crowdfunding/wpcftemplate/woocommerce/basic/

    If you are a developer, I believe you can do that easily.

    Regards,
    Mehedi

    I’m using wp crowdfunding plugin. How to add custom fields in my child theme. When I’m trying to add custom field in my child theme it is not showing is campaign form. When I add a field in the parent theme it showed the field.

    Hell0 @andpercent604,
    Support Email Your question has been answered. Please check your email.
    Thanks

    fabiantheobald

    (@fabiantheobald)

    Dear Support,

    can you provide us some sample code to add a custom field (event_date / datepicker) to Submit_Form and ‘the woocommerce way’ like @mehedih described above.

    I am using WP Crowdfunding Pro – btw.

    Thanks in advance.

    Theo

    fabiantheobald

    (@fabiantheobald)

    I sorted it out. It was easier than I thought ??

    soha1992

    (@soha1992)

    @fabiantheobald can you please share the steps of what you did to add extra fields?

    soha1992

    (@soha1992)

    @mehedih isn’t it better to add customized codes on a new plugin to not lose data later when updating plugin?

    fabiantheobald

    (@fabiantheobald)

    Dear Support-Team,

    i added a custom field (Type: Date) like described above.

    It works find in frontend and backend, but the date picker is not working so I have to enter the date by hand, which is not very handy.

    What do I have to do to get the date picker working?

    I would also appreciate a tutorial to add custom fields. Like @soha1992 said before there is a real need to customize this plugin to not lose any data on the next update.

    Thanks in advance.

    Theo

    Rejuan Ahamed

    (@rejuancse)

    Hello @fabiantheobald,
    It would be best if you provide the site URL. Then I could check directly.

    Thanks

    fabiantheobald

    (@fabiantheobald)

    @rejuancse
    The URL is: https://crowdticket.saarland/

    But the access ist restricted vi .htaccess. I already send you the credentials via emails trough your support channel.

    Kind regards
    Theo

    Rejuan Ahamed

    (@rejuancse)

    Hello,
    See this link https://prnt.sc/vlddfw
    If the best way, please contact our Themeum support team([email protected]), The support will help you.

    Thanks

    soha1992

    (@soha1992)

    Hello
    I’ve purchased the pro version of crowdfinding plugin but couldn’t find anyone to help me modify/add new fields in submit form (I’m ready to make it a paid service). However, I found a way to add new fields in a new plugin (to not lose data later) but couldn’t know how to save and show these fields (is this possible in the first place or I should edit in direct paths?). Could anyone help?

    • This reply was modified 4 years ago by soha1992.
    • This reply was modified 4 years ago by soha1992.
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘How to customize New Project Submission Form?’ is closed to new replies.