admin管理员组

文章数量:1335587

I have an inscription form and I'm using Contact Form 7, Conditional Fields plugin and Dynamic Text Extension. I want to show different prices according to the option selected and get the price for showing on the email confirmation (and save into database with Contact Form DB).

With the following code the price is displayed correctly on the web, but always appears with the same value in the confirmation email

Service type [select* serv_type "Regular" "Exceptional"]
[group g_regular clear_on_hide]
  Price [dynamictext amount readonly "65"]
  [dynamichidden price_value "65"]
[/group]
[group g_exceptional clear_on_hide]
  Price [dynamictext amount readonly "45"]
  [dynamichidden price_value "45"]
[/group]

The conditional code is

show [g_regular] if [serv_type] equals "Regular"
show [g_exceptional] if [serv_type] equals "Exceptional"

And the email template code is

Subject: Inscription registered ([serv_type])    
New [serv_type] inscription with [price_value]€ ([amount]).

The price and amount value is always 65 on the email confirmation and should be 45 if is selected Exceptional

本文标签: pluginsGetting value from dymanic text variable into Contact Form 7