CodePeople2
Forum Replies Created
-
Forum: Reviews
In reply to: [Calculated Fields Form] 5 StarsForum: Plugins
In reply to: [Calculated Fields Form] How to make the slider right to left?Hello @fadhlba
Please edit the code as follows:
<script>
fbuilderjQuery(document).on('formReady', function(){
fbuilderjQuery('.cff-slider-field').each(function(){
let e = fbuilderjQuery(this);
let n = e.attr('class').match(/fieldname\d+/i)[0];
let f = getField(n);
let _min = f.get_min();
let _max = f.get_max();
f.set_min(-1*_max);
f.set_max(-1*_min);
e.find('.left-corner').text(f.maxCaption);
e.find('.right-corner').text(f.minCaption);
f.oVal = f.val;
f.val = function(p){ return -1 * f.oVal(p);}
e.find('[id*="_slider"]').on('slide slidestop', function(evt, ui){
let c = f.caption.replace('{0}', f.val());
setTimeout(function(){
e.find('.slider-caption').text(c);
e.find('.cff-slider-tooltip-value').text(f.val(true, true));
}, 10);
}).trigger('slide');
});
});
</script>Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] How to make the slider right to left?Hello @fadhlba
Thank you very much for using our plugin. Unfortunately, the jQuery UI Slider control does not support RTL text direction. However, you can emulate it by following the steps described below:
- Insert an “HTML Content” field in the form.
- Tick the checkbox in its settings to allow to enter script tags in its content.
- Finally, enter the following piece of code as its content:
<script>
fbuilderjQuery(document).on('formReady', function(){
fbuilderjQuery('.cff-slider-field').each(function(){
let e = fbuilderjQuery(this);
let n = e.attr('class').match(/fieldname\d+/i)[0];
let f = getField(n);
let _min = f.get_min();
let _max = f.get_max();
f.set_min(-1*_max);
f.set_max(-1*_min);
e.find('.left-corner').text(f.maxCaption);
e.find('.right-corner').text(f.minCaption);
f.oVal = f.val;
f.val = function(p){ return -1 * f.oVal(p);}
e.find('[id*="_slider"]').on('slide slidestop', function(evt, ui){
let c = f.caption.replace('{0}', f.val());
setTimeout(function(){
e.find('.slider-caption').text(c);
}, 10);
}).trigger('slide');
});
});
</script>Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] How to prevent entering negative values?Hello @tooni
Thank you very much for the review.
If you ever require features such as sending confirmation emails to visitors, generating dynamic invoices using the information collected by the form, dynamically calculating WooCommerce product prices, or exporting user-entered data to a CSV file for analysis in applications like Excel, please consider the features offered in our plugin’s commercial distributions.
https://cff.dwbooster.com/download#comparison
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] How to prevent entering negative values?Hello @tooni
If you have been satisfied with both the plugin and our support, we would be immensely grateful if you could leave us a review on the plugin ( https://ww.wp.xz.cn/support/plugin/calculated-fields-form/reviews/ ). Your feedback will help us reach more users.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] don’t show result with “if else syntax”Hi!
Thank you very much for the detailed description. As the shortcode for results is a commercial feature and forum policies do not allow us to support customers with commercial products ( Commercial products are not supported in these forums), could you please contact us directly through the plugin website? We would be happy to address this and any other questions you may have. You can reach us at our website. Contact Us.
Thank you.
Forum: Plugins
In reply to: [Calculated Fields Form] How to prevent entering negative values?Hello @tooni
Depending on your project requirements, a calculate button would be the solution instead of evaluating the equations dynamically.
You can deactivate the dynamic evaluation of the equation from the “Form Settings” tab, and then insert a common button (not a calculate button) in the form with the following piece of code as its onclick event:
if(VALIDFORM(this.form)) EVALEQUATIONS(this.form);Another alternative, if you want to preserve the dynamic evaluation of the equations, would be to do it by coding. Note that all these solutions depend on your form implementation:
Deactivate the dynamic evaluation of the equations from the “Form Settings” tag, and insert an HTML Content field in the form, configured as follows:
- Tick the checkbox in its settings to support script tags.
- Enter the following piece of code as its content:
<script>
fbuilderjQuery(document).on('input', '#fbuilder :input', function(){
if(VALIDFORM(this.form, true)) EVALEQUATIONS(this.form);
});
</script>Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] How to prevent entering negative values?Hello @tooni
Yes, of course. Assuming you have the calculated field with the equation:
fieldname1+fieldname2You can edit the equation as follows:
IF(AND(0<=fieldname1, 0<=fieldname2, fieldname1+fieldname2, '')Or you can check directly if the fields are valid by using the VALIDFIELD operation:
IF(AND(VALIDFIELD(fieldname1|n), VALIDFIELD(fieldname2|n), fieldname1+fieldname2, '')The |n indicate the plugin you are referring directly to the field’s name instead of its value.
Learn more about the Managing Fields Operations module by visiting the following link:
https://cff.dwbooster.com/documentation#managing-fields-module
If you want to validate the field without displaying the error message, the third parameter in the VALIDFIELD operation is a boolean that tells the plugin you want to make silent validation:
IF(AND(VALIDFIELD(fieldname1|n, "cp_calculatedfieldsf_pform_1", true), VALIDFIELD(fieldname2|n, "cp_calculatedfieldsf_pform_1", true), fieldname1+fieldname2, '')Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] don’t show result with “if else syntax”Hello @vvphuc
Could you please let me know if you have identified the cause of the issue, or kindly provide the requested information so that we can further investigate your form?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] don’t show result with “if else syntax”Hello @vvphuc
Thank you for using our plugin. Are all your other conditional configurations working as expected? Could you please provide the link to the implemented form along with the field values you are entering for testing?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Fatal Error on Multiple Files UploadedHello @andwhyisit
Thank you very much for using our plugin and for your feedback. I apologize for any inconvenience and the delay in my response. Please install the latest plugin update, which was just released, and let me know if the issue persists.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Service Form HelpHello @klingbeil
Please watch the following video. In it, I demonstrate a basic form that collects two values and calculates their sum. Additionally, I created a second form, intended for your technicians, that allows them to enter submission IDs to automatically populate the fields with the corresponding values from the initial form.
https://resources.developers4web.com/cff/tmp/2025/05/27/video-multiple-forms_o.mp4
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Service Form HelpHello @klingbeil
I’m sorry, but if you’re requesting that we implement your entire project workflow merely as a demo, we won’t be able to do so. If you require custom coding services for your project, please contact us through the plugin website: https://cff.dwbooster.com/customization
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Service Form HelpHello @klingbeil
Yes, that’s possible, and I described in the previous email the plugin features to use in the workflow implementation.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Service Form HelpHello @klingbeil
Thank you for using our plugin! This workflow requires several specific features:
- Data Source Fields:
These fields, available in both the Developer and Platinum plugin distributions, extract values from various external data sources, such as databases, CSV files, previous submissions, server-side calculations, ACF, and more. If your service team needs access to a form that aggregates data from other users’ submissions, you must incorporate the DS fields. You can find more details in this guide: DS Fields Documentation. - Users Permissions Add-on:
Also included in the Developer and Platinum distributions, this add-on is essential for forms that need to be accessible only to specific user roles (for example, the technical team). It enables you to manage form access effectively. For further information, please refer to: Users Permissions Guide. - CSV Export Functionality:
Depending on your project’s needs, you have two options:
- If you prefer to export the CSV file manually, you can do so from the Entries section. This option is available in every commercial plugin distribution. More details can be found here: Export Submissions Documentation.
- If you require automatic CSV generation (i.e., creating a new entry in the CSV file upon every form submission), you will need the “CSV Generator” add-on, which is part of the Platinum distribution. More information is available here: CSV Generator Instructions.
We hope this clarifies the necessary plugin requirements for your workflow. If you have any questions or need further assistance, please don’t hesitate to reach out.
Best regards.