Output of the sum
-
Good afternoon, I can not find an error. when I choose the value in fieldname1 (dropdown) for different values, different “Checkboxes”, and one “Calculated Field” for all. I not see resoult in summary field.
(function(){IF(fieldname1 = 600) return fieldname2;
IF(fieldname1 = 680) return fieldname3;})()Thank you in advance for your cooperation
-
Hello @andreiikustov,
There are multiple errors in your equation.
Javascript is a case sensitive language, and you’re confusing the conditional statement “if” for javascript with the operation: “IF” distributed with the plugin.
Second, in javascript the operator for equality is the double symbol: == because the symbol = is used for assignment.
So, the correct equation would be:
(function(){ if(fieldname1 == 600) return fieldname2; if(fieldname1 == 680) return fieldname3; return ''; })()
Using nested “IF” operations:
IF(fieldname1 == 600, fieldname2, IF(fieldname1 == 680, fieldname3, ''))
and that’s all.
Best regards.It’s great. Many thanks.
Good afternoon, how to include in the text of the letter a field of Checkboxes (text and value at the same time), if they are selected by the user.
Hello @andreiikustov,
The feature you are requesting is not possible by default, because an element will submit the text or the value but not both, however, it is easy to implement following the steps below:
1. Select the checkbox field in the form, and tick the option for submitting the choices’ texts, in the field’s properties.
2. Now, insert a “HTML Content” field in the form with the following piece of code as its content:
<script> fbuilderjQuery(document).one('showHideDepEvent', function(){ fbuilderjQuery('#fbuilder input[type="checkbox"]').each(function(){var e = fbuilderjQuery(this); e.attr('vt', e.attr('vt')+' ('+e.val()+')')}); }); </script>
and that’s all.
Best regards.Does not work
(((
<br>Заказ от <%fieldname9% _value>
<br><%fieldname11%>
<br>В заказе:
<br><script>
fbuilderjQuery(document).one(‘showHideDepEvent’, function(){
fbuilderjQuery(‘#fbuilder input[type=”checkbox”]’).each(function(){var e = fbuilderjQuery(this); e.attr(‘vt’, e.attr(‘vt’)+’ (‘+e.val()+’)’)});
});
</script>
<br>
<br>ВЕСЬ СПЕКТР ИНЖЕНЕРНЫХ СИСТЕМ ДЛЯ ДОМА
<br> МОНТАЖ ПРОДАЖА СЕРВИС
<br>
<br>НАШ САЙТ: https://www.профисант.рф https://www.Profisant.com
<br>МЫ в ВК https://vk.com/profisant
<br>МЫ в YouTube <br>https://www.youtube.com/channel/UCIs5LFQMJyzrG9FQyK8yINA
<br>
<br>+7 812 629 27 81
<br>+7 921 900 27 81
<br>Санкт-Петербург Аннинское шоссе, 26а оф. 310 3-й этаж
<br>
<br> С УВАЖЕНИЕМ КОМАНДА
<br> Profisant
– это в теле письмаAnd comes this way:
Заказ от
Номер телефона1111111111
В заказе:ВЕСЬ СПЕКТР ИНЖЕНЕРНЫХ СИСТЕМ ДЛЯ ДОМА
МОНТАЖ ПРОДАЖА СЕРВИСНАШ САЙТ: https://www.профисант.рф https://www.Profisant.com
МЫ в ВК https://vk.com/profisant
МЫ в YouTube
https://www.youtube.com/channel/UCIs5LFQMJyzrG9FQyK8yINA+7 812 629 27 81
+7 921 900 27 81
Санкт-Петербург Аннинское шоссе, 26а оф. 310 3-й этажС УВАЖЕНИЕМ КОМАНДА
ProfisantHello @andreiikustov,
I’m sorry, but you have not followed my instructions. I’m talking about changes in the form, not in the thank you page:
1. Select the checkbox field in the form, and tick the option for submitting the choices’ texts, in the field’s properties.
2. Now, insert a “HTML Content” field in the form with the following piece of code as its content:
<script> fbuilderjQuery(document).one('showHideDepEvent', function(){ fbuilderjQuery('#fbuilder input[type="checkbox"]').each(function(){var e = fbuilderjQuery(this); e.attr('vt', e.attr('vt')+' ('+e.val()+')')}); }); </script>
Best regards.
Hello @andreiikustov,
Please, to understand the first point, please, look the screenshot visiting the following link:
https://wordpress.dwbooster.com/customdownloads/2018/01/20/screenshot_checkbox.png
Best regards.
Good afternoon. I would like to receive an answer
website https://profisant.odessa.one
login @dmin
pass odeSSa
Form new1Hello @andreiikustov,
I’ve checked your form, and you have ticked the option for sending the choice text (look the screenshot: https://wordpress.dwbooster.com/customdownloads/2018/01/22/screenshot_checkbox.png) and your text includes the value, so, you don’t need to do anything more.
By the way, please, don’t publish the access to your WordPress in this forum.
Best regards.
It should be, but … no. In the letter nothing comes. Only those data that are outside the function.
Hello @andreiikustov,
Please, pay attention to the “Messages” attributes in your form’s settings:
<br>Заказ от <%fieldname9_value%> <br><%fieldname11%> <br>В заказе: <br><script> fbuilderjQuery(document).one('showHideDepEvent', function(){ fbuilderjQuery('#fbuilder input[type="checkbox"]').each(function(){var e = fbuilderjQuery(this); e.attr('vt', e.attr('vt')+' ('+e.val()+')')}); }); </script> <br><IMG src = "https://profisant.odessa.one/wp-content/logo1.png"> <br>ВЕСЬ СПЕКТР ИНЖЕНЕРНЫХ СИСТЕМ ДЛЯ ДОМА <br> МОНТАЖ ПРОДАЖА СЕРВИС <br> <br>НАШ САЙТ: www.профисант.рф www.Profisant.com <br>МЫ в ВК https://vk.com/profisant <br>МЫ в YouTube <br>https://www.youtube.com/channel/UCIs5LFQMJyzrG9FQyK8yINA <br> <br>+7 812 629 27 81 <br>+7 921 900 27 81 <br>Санкт-Петербург Аннинское шоссе, 26а оф. 310 3-й этаж <br> <br> С УВАЖЕНИЕМ КОМАНДА <br> Profisant
You have included only the tags for the fields: fieldname9 and fieldname11, but not the tags for the checkbox fields (fieldname2, and fieldname3)
If you want sent all data collected through the form you should use the special tag
<%INFO%>
, but if you don’t want send all data, you should include the tags of the fields you want to include. Additional details in the following link:https://cff.dwbooster.com/documentation#special-tags
Best regards.
Everything turned out, really forgot to enter the fields. Data from the function comes in a line separated by a comma. Is it possible to list them?
Thank you in advanceTo make a cad with a new line
Hello @andreiikustov,
For listing them I recommend you to enter the
<br>
tag as part of the choice text in the field’s properties.Best regards.
- The topic ‘Output of the sum’ is closed to new replies.