• I am trying to include some PHP code in contact Form 7 but my syntax is not meeting the task (it sux). I was wondering if someone could help me out her. Here is the codes intention:
    ~~~~~~~~~~~~~~~~~~~~~~~
    [checkbox* alphabetchoice id:selectalpha exclusive “A” “B” “C”]

    <if (selectalpha.value==’A’) {do action 1} else {don’t care}/>
    <if (selectalpha.value==’B’) {do action 2} else {don’t care}/>
    <if (selectalpha.value==’C’) {do action 3} else {don’t care}/>

    Or nested

    <if (selectalpha.value==’A’) {do action 1} else {<if (selectalpha.value==’B’) {do action 2} else {do action 3}}/>
    ~~~~~~~~~~~~~~~~~~~~~~~
    Any help would be greatly appreciated.

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Thread Starter adminda

    (@adminda)

    So far this is the code that I have put together but it is not working:

    [checkbox districtcheck id:checkdistrict exclusive “Northeast District” “Northwest District” “Central District”]

    <if (document.getElementById(‘checkdistrict’).value==’Northeast District’) { document.getElementById(‘divned’).style.visibility=’visible’ } else { document.getElementById(‘divned’).style.visibility=’hidden’ }/>

    Thanks for any help out there!

Viewing 1 replies (of 1 total)

The topic ‘PHP in Contact Form 7 Syntax’ is closed to new replies.