CodePeople2
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Button onclick event add to cartHello @servicets
In the button context, the field’s name is a text, not a variable; you must enclose it between single or double quotes:
fbuilderjQuery.ajax({url: "https://www.veranstaltungsservice-ts.de/mietkorb/?add-to-cart=2091&quantity="+getField('fieldname13', this.form).val(false,true),type: "GET"});You are currently using
getField(fieldname13, this.form)that is incorrect.Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Add form to WordPress MenuHello @nyasham60
You need only to insert the form shortcode (
[CP_CALCULATED_FIELDS id="6"]) in the contact form, either through the “shortcode” module in the WordPress editor, or the own plugin module. Please watch the video by visiting the following link:https://youtu.be/R8hEbD8w2RM?list=PLY-AOoHciOKgZQsqWfkQlHJ21sm3qPF9X&t=135
The video is pointing at the moment the form is inserted in the page.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Button onclick event add to cartHello @servicets
I understand the issue’s cause. Your page contains multiple forms. For this reason, you must pass a second parameter to the getField operation to tell the plugin where it should locate the field whose value you want to use. Otherwise, you will have an ambiguity.
So, the code must be edited as follows:
fbuilderjQuery.ajax({url: "https://www.veranstaltungsservice-ts.de/mietkorb/?add-to-cart=2091&quantity="+getField('fieldname13', this.form).val(false,true),type: "GET"});
fbuilderjQuery.ajax({url: "https://www.veranstaltungsservice-ts.de/mietkorb/?add-to-cart="+getField('fieldname24', this.form).val(false,true),type: "GET"&quantity="+getField('fieldname17', this.form).val(false,true),type: "GET"});
fbuilderjQuery.ajax({url: "https://www.veranstaltungsservice-ts.de/mietkorb/?add-to-cart="+getField('fieldname28', this.form).val(false,true),type: "GET"&quantity="+getField('fieldname25', this.form).val(false,true),type: "GET"});Note that I edited pieces of code like
getField('fieldname25')asgetField('fieldname25', this.form)It tells the plugin that you want the fieldname25 field, which belongs to the same form as the button.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] I want to display the value of another fieldHello @benlashley80
I’m sorry, but they don’t mean the same. Predefined values are the values the fields display when the form is rendered. This attribute allows you to use other fields’ values as predefined values.
For example, if you enter the fieldname1 as the default value of the fieldname2, when fieldname1 is generated, it will display the fieldname2 value. However, if the user enters new values in fieldname2 at runtime, it will not be updated in fieldname1. In the case of the calculated fields, the equations take precedence. Assuming fieldname2 is a calculated field. It will display the fieldname1 as its default value, but if you have enabled the dynamic evaluation of the equations, the default field value will be replaced with the equation’s result.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] I want to display the value of another fieldHello @benlashley80
The solution is as simple as enter fieldname123 as the equation of the calculated field, not its predefined value.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] QR after submitHello @ohtusabes
The QRCode generator is ready. You can get it by visiting the following link:
https://cff-bundles.dwbooster.com/product/qrcode-generator
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] QR after submitHello @ohtusabes
We decided to implement a complementary plugin to generate QR codes with the information collected by the form. We’ll release it as soon as it’s ready and keep you informed!
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] QR after submitHello @ohtusabes
In the current plugin version, to generate QR codes you must use a third-party library from the “cp_calculatedfieldsf_insert_in_database.php” file. If you need a custom coding service, please contact us directly via the plugin website. Contact Us.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] SUM on Radio button field not workingHello @nyasham60
I cannot access your URL because it is to the backend. However, I checked your form.
You entered the following code as calculated field’s equation:
SUM(IGCSE-Biology,IGCSE-Chemistry,IGCSE-Physics,IGCSE-ICT)However, your equation would be simply:
fieldname9You only need to enter the name of the checkbox field, the plugin will sum the selected choices by itself.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Button onclick event add to cartHello @servicets
Could you please provide the link to the page that contains the form to check your code in action?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Button onclick event add to cartHello @servicets
If you are referring to the “Add To Cart” button, I assume you are talking about the WooCommerce integration. If that is the case, and you have two slider controls that represent two products, let’s say the fieldname1 represents the quantities for a product with ID 123, and fieldname2 represents the quantity for a product with ID 456. Your button must include a code like:
fbuilderjQuery.ajax({url: "https//www.yourwebsite.com/path-to-the-cart?add-to-cart=123&quantity="+getField('fieldname1').val(false,true),type: "GET"});
fbuilderjQuery.ajax({url: "https//www.yourwebsite.com/path-to-the-cart?add-to-cart=456&quantity="+getField('fieldname2').val(false,true),type: "GET"});Please note that this question is not specifically about our plugin; it pertains to a specific implementation for your project. If you require further assistance with your project implementation, you can reach out to us directly through the plugin website: Contact Us.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Export form as a styled pdf ?Hello @metusalem
Thank you for using our plugin!
For all our commercial distributions, the plugin comes with the ability to send users an email copy containing the information collected in the form – including the calculated field results. However, if you want to generate a dynamic PDF file with the submitted data, you will need to upgrade to the Platinum version and activate the “CFF – PDF Generator” add-on.
Please read our blog post to learn how to create dynamic PDF files:
https://cff.dwbooster.com/blog/2020/07/19/pdf-generator
And watch the following video:
https://www.youtube.com/watch?v=TXLMB3_w-Xg
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] install the commercial versionHello @benlashley80
Thank you so much for upgrading your plugin copy. Please note that we can’t reply about that in this forum. We are not allowed to support any customers in these forums.
For pro or commercial product support, please contact us directly on our site.
Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.
Thank you.
Forum: Plugins
In reply to: [Calculated Fields Form] write to server side text file?Hello @benlashley80
The commercial editions of the plugin store all data submitted via the form in your website’s database. You can access this data through the “Calculated Fields Form > Entries” menu option (https://cff.dwbooster.com/documentation#check-submissions). This section also allows you to export submissions to a CSV file, which can be used with Excel, Google Sheets, or any other spreadsheet program.
If you want to store the data collected by the form in another database or custom tables, or generate additional files, you can do so using the “cp_calculatedfieldsf_insert_in_database.php” file included with the Developer and Platinum versions of the plugin. For more information, please refer to https://cff.dwbooster.com/documentation#third-party-database.
Finally, if you want to append the data directly into a CSV file instead of doing it manually by pressing a button in the “Entries” section, you can activate the “CFV – Generator” add-on distributed with the plugin Platinum version ( https://cff.dwbooster.com/blog/2020/06/01/csv-generator-google-sheet )
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
You have some typos in the equations. In an equation, you entered feildname214 instead of fieldname214, and in another equation, you entered feildname227 instead of fieldname227
Best regards.