Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter fusazaki

    (@fusazaki)

    Hi, I haven’t had a contact about two weeks. Can you help me, please?

    Thread Starter fusazaki

    (@fusazaki)

    also, here is the contact.php code:

    <?php
    /**
    * Template Name: Contact
    *
    * @package WordPress
    * @subpackage Value_Net
    * @since Value Net 1.2
    */

    get_header();

    $list_inquiry_type = get_field('list_inquiry_type');

    // Start the Loop.
    while ( have_posts() ) : the_post();

    the_content();
    ?>

    <script>

    var list_inquiry_type = JSON.parse('<?php echo json_encode($list_inquiry_type) ?>');

    if( list_inquiry_type.length !== 0 ) {
    var select = document.getElementById('inquiry-type');

    for (var option in select){
    select.remove(option);
    }

    select.innerHTML = '<option value="">お問い合わせ内容をお選び下さい。</option>';
    (list_inquiry_type || []).forEach( o => {
    select.innerHTML += '<option value="'+ o.name +'">'+ o.name +'</option>';
    });

    }

    document.getElementById('inquiry-type').addEventListener('change', function() {
    var thisvalue = this.value;
    console.log("choose: ", thisvalue);
    var emailTarget = list_inquiry_type.filter(function(el) {
    if( thisvalue == el.name ) {
    return el;
    }
    });

    if( emailTarget[0].email.length !== 0 ) {
    console.log("email: ", emailTarget[0].email);
    document.getElementById("email-target").value = emailTarget[0].email;
    }
    });
    </script>
    <?php
    endwhile;

    get_footer();
    Thread Starter fusazaki

    (@fusazaki)

    Hi, I still have this issue unsolved. Could you please help me?

    Just in case, I’m writing down in English the content i have in form panel, if this is what you need:

    text

    E-mail address

    URL

    telephone number

    numeric value

    date

    Textarea

    Drop-down menu

    Checkbox

    radio button

    Commitment confirmed

    quiz

    file

    Submit button
    Thread Starter fusazaki

    (@fusazaki)

    Sorry, any solutions for this case?

    Thread Starter fusazaki

    (@fusazaki)

    テキスト

    メールアドレス

    URL

    電話番号

    数値

    日付

    テキストエリア

    ドロップダウンメニュー

    チェックボックス

    ラジオボタン

    承諾確認

    クイズ

    ファイル

    送信ボタン

    Thread Starter fusazaki

    (@fusazaki)

    Hi, i have done what you recommend, and after that, I still couldn’t send the form, but I noticed that お問い合わせ種別 didn’t display any options to select.

    Updated to a newer version (5.9.4), changed the active theme for a default theme, and deactivate all plugins except those you mentioned.

    Regards

    Thread Starter fusazaki

    (@fusazaki)

    Okay, I’ll do it but do i have to update to the newer version before it?

    Thread Starter fusazaki

    (@fusazaki)

    These are the plugins installed.

    Admin Menu Editorバージョン 1.12.2 (作者: Janis Elsts)

    Advanced Custom Fields PROバージョン 6.2.9 (作者: WP Engine)

    Advanced Editor Toolsバージョン 5.9.2 (作者: Automattic)

    All-in-One WP Migrationバージョン 7.81 (作者: ServMask)

    Better Search Replaceバージョン 1.4.6 (作者: WP Engine)

    Classic Editorバージョン 1.6.3 (作者: WordPress Contributors)

    Contact Form 7バージョン 5.8.7 (作者: Takayuki Miyoshi)

    Flamingoバージョン 2.5 (作者: Takayuki Miyoshi)

    LiteSpeed Cacheバージョン 6.1 (作者: LiteSpeed Technologies)

    Page Title Splitterバージョン 2.5.8 (作者: Chris Steman)

    PlugVersionsバージョン 0.0.5 (作者: Jose Mortellaro)

    Redirectionバージョン 5.4.2 (作者: John Godley)

    SiteGuard WP Pluginバージョン 1.7.6 (作者: JP-Secure)

    Site Kit by Googleバージョン 1.126.0 (作者: Google)

    UpdraftPlus – Backup/Restoreバージョン 1.24.3 (作者: UpdraftPlus.Com, DavidAnderson)

    Wordfence Securityバージョン 7.11.5 (作者: Wordfence)

    WP-Sweepバージョン 1.1.8 (作者: Lester ‘GaMerZ’ Chan)

    WP File Managerバージョン 7.2.6 (作者: mndpsingh287)

    WP Rollbackバージョン 2.0.6 (作者: WP Rollback) (最新バージョン: 2.0.7)

    The theme is a wordpress basic theme, adapted to customer needs

    • This reply was modified 2 years ago by fusazaki.
Viewing 8 replies - 1 through 8 (of 8 total)