codepeople
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] After update CFF not sending POST valuesHello @lucavanon
Thank you very much for contacting us. I’m sorry but the free plugin distribution has never included the option to send the information collected by the form to the thank you page because it does not support the shortcode for results as the commercial plugin distributions do.
Could you please provide the link to the page that contains the form?
Best regards.
Hello @misterdata
Could you please untick the “Enable lazy loading” checkbox in the plugin settings page, and clear the website (WP Rocket) and browser caches after editing the plugin settings?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Page is not loading after years of working fineHello @hheyhey568
Please try the following modification. Tick the “Delay the equations evaluation (evaluate the equations after rendering the form)” checkbox in the “Form Settings” tab. Finally, clear the website’s cache created by “LiteSpeed Cache” and the browser’s cache.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Bir poz listesinden fiyat değerini formüle eklemekHello @metesey
The behavior you describe can be implemented by using the DS fields distributed with the Developer and Platinum plugin versions.
The DS fields read their values from external data sources like CSV files, databases, other submissions, ACF, etc.
You can create the prices list in a CSV file (You can even use Google Sheets and publish the Google Sheets document in CSV format) and use it from the forms by using the DS fields.
Implementing the forms in this way allows you to update the price list in one place. The forms would use the new prices without modifying the forms.
So, assuming you have a CSV file with the columns: name, value
name,value
Cost1,15
Cost2,20
Cost3,40
Cost4,26
Cost5,15.5Now, in the form, you can insert a RecordSet DS field to read the CSV file from its URL. To describe the process I’ll call it fieldname123.
The equations in “FORM 2: BATHROOM COST CALCULATION” can be implemented as follows:
fieldname3 equation:
(function(){
let prices = fieldname123;
for( let i in prices ) {
if(prices[i]['name'] == 'Cost2') return fieldname1*prices[i]['value'];
}
})()fieldname4 equation:
(function(){
let prices = fieldname123;
for( let i in prices ) {
if(prices[i]['name'] == 'Cost3') return (fieldname1+fieldname2)*prices[i]['value'];
}
})()Learn more about the DS fields by reading the following blog post:
https://cff.dwbooster.com/blog/2019/02/14/ds
Best regards.
Hello @lanavas
We have released a plugin update (5.2.41), just now, that modifies the Elementor integration module. Could you please install it and let me know if the issue persists?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Bir poz listesinden fiyat değerini formüle eklemekHello @metesey
For multiple forms on the page, you cannot use the same “values” variable name on them. The “values” variable in the last form would overwrite others.
I honestly do not understand why you are making the process so complex. What do you want to implement exactly? Could you please describe the project in English? I think I’m losing something by translating the texts.
Best regards.
Hello @lanavas
My apologies for the inconvenience. Could you please provide additional details about the conflict? Does it display any error message in the page or browser’s console? Or any entry in the Error logs on your server?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Bir poz listesinden fiyat değerini formüle eklemekHello @metesey
If you have two forms on the page, you can assign class names to them via their shortcodes:
[CP_CALCULATED_FIELDS id="1" class="class-a"]
[CP_CALCULATED_FIELDS id="7" class="class-b"]And assuming you want to use the value of the field in form with class-a in the equations of form-b, you can enter an equation similar to the following one:
(10+20)*getField(fieldname2|n, '.class-a')The equation multiplies the (10+20) by the value of the field with name fieldname2 in the form with class class-a.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form cache problemHello @klingbeil
What console links are you referring to? Could you please provide a screenshot and the link to the page where this happens to check the issue in detail?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form cache problemHello @klingbeil
The CSS code I mentioned in a previous entry was not related to our plugin. In the page URL you provided the form shortcode had been inserted into a tag in the page that had been hidden via CSS.
Regarding the WP Rocket, we cannot control how it generates the caches, for this reason, we recommended using the iframe attribute because the form would not be affected by the cache and you could exclude URLs with the
cff-formattribute from WP Rocket settings.Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] need a way to backup my formsHello @elmirasln
Thank you very much for using our plugin. Could you please indicate the version number of your plugin copy? The Export/Import forms feature is included with the commercial plugin distributions (Professional, Developer, and Platinum) but unfortunately, not with the free one.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form cache problemHello @klingbeil
No, I was referring to the page where you inserted the form, not the form itself. For example, the URL https://www.pexpe.com/hicri-takvim-hesaplama/
However, if you insert the forms’ shortcode with the iframe attribute set at 1, excluding the pages’ URLs through the WP Rocket settings is unnecessary.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Bir poz listesinden fiyat değerini formüle eklemekHello @metesey
Yes, that’s fine, but if you want to evaluate the equation based on the fieldname1 choice selected you must include it in the equation.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Bir poz listesinden fiyat değerini formüle eklemekHello @metesey
In this case, if fieldname1 is a checkbox field with the choices values: Poz1, Poz2, Poz3, Poz4, and Poz5, and you want to implement the equation of the Hesaplama-1 field as follows:
If the Poz2 choice is ticked in feldname1 the equation’s result would be: (10+20)*20 and zero if not.
First, I recommend inserting an “HTML Content” field in the form to define the object with choices’ values (it allows you to edit the prices in only one place)
<script>
values = {'Poz1': 15, 'Poz2': 20, 'Poz3': 40, 'Poz4': 26, 'Poz5': 15.5};
</script>And edit the equation in the calculated field as follows:
(10+20)*IF(IN('Poz2', fieldname1|r, values['Poz2']), 0)You can follow a similar logic with the other equations.
Best regards.