• webdev3996

    (@webdev3996)


    I have a dropdown menu where a pricing category is selected. The category is text which then relates to a cost. I’ve been using ‘–‘ as a separator between select text and select value. CF7 documentation now refers to using ‘|’ as a pipe.

    Everything works up to CF7 version 5.8.7, but not the latest V5.9 or 5.9.3.

    Category [select* price-category default:1 “5 to 499 plants @$2.20 each–2.20” “500 to 999 plants @$1.80 each–1.80” “1000 plus plants @$1.50 each–1.50” “Community group fundraising discount @$1.50 each–1.50”]

    Sub-total cost$[calculator sub-cost Precision:2 “qty-total * price-category”]

    With CF7 version 5.9 & 5.9.3, the forms works as expected before it’s submitted. The cost value from the dropbox correctly updates the sub-total-cost. All as expected. However, it fails on form submission with ‘Undefined value was submitted through this field’.

    I tried using ‘|’ pipe, but that also doesn’t work.

    So I’ve had to revert back to CF7 V5.8.7 for now.

    Using these form plugins:
    ‘Conditional Fields for CF7’ V2.4.10,
    ‘Contact Form 7 – Submission id’ V2.4.0,
    ‘Contact Form CFDB7’ V1.2.6.8,
    ‘Cost Calculator Contact Form 7 Pro’ V1.0,

    Thanks, Rod

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter webdev3996

    (@webdev3996)

    Update: There are two hyphens (minus sign) used to separate the text and value. My original post text had two hyphens, but for some reason, this forum reduced that to a single hyphen. So read one hyphen as two hyphens. Thanks.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Selectable recipient with pipes

    CF7 documentation now refers to using ‘|’ as a pipe.

    It’s been so since 2009.

    Thread Starter webdev3996

    (@webdev3996)

    Thankyou, I read that documentation and tried it, but the _raw_price-category didn’t work.

    Not sure why I have been using ‘—-‘ (Double hyphen) instead of ‘|’ for the last 4 years, but it has worked until recently.

    Was double hyphen ever the correct syntax for separating dropdown select text and values ?

    • This reply was modified 11 months ago by webdev3996.
    • This reply was modified 11 months ago by webdev3996.
    • This reply was modified 11 months ago by webdev3996.
    • This reply was modified 11 months ago by webdev3996.
    • This reply was modified 11 months ago by webdev3996.
    • This reply was modified 11 months ago by webdev3996.
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme, deactivating all plugins excluding Contact Form 7, and clearing all cache data.

    Why you are advised to deactivate plugins and switch to the default theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dropdown Field select text vs value’ is closed to new replies.