CodePeople2
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] How to change the error popup style for fields?Hello @spacemakerman
If you want to modify the error tooltips, please, enter the style definition below through the “Customize Form Design” attribute in the “Form Settings > Advanced Settings” tab:
.cff-form #fbuilder .uh div.cpefb_error.message{
border-color: #866552 !important;
transition: border-color 0.3s ease !important;
background-color: #866552 !important;
color: #D2C8BC !important;
}
.cff-form #fbuilder .uh div.cpefb_error.message::after{
border-bottom-color: #866552 !important;
}Best regards.
Hello @spacemakerman
Thank you so much for using our plugin.
If you want to include a “preset value” option, first enter all selectable options in DropDown settings, tick the “Includes an additional first choice as placeholder” checkbox and enter “preset value” through the “First choice text” attribute.
Best regards.
Hello @metesey
If you are referring to display the field only by printing the form? Yes, that’s possible.
Assign a custom class name to the fields you want to display only by printing the form. E.g.
print-only
The class names are assigned to the fields through their “Add CSS Layout Keywords”.
Finally, enter the styles definition below through the “Customize Form Design” attribute in the “Form Settings > Advanced Settings” tab:
@media screen{
.print-only{display:none;}
}
@media print{
.print-only{display:block !important;}
}Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingHello @pexel
The WP Rocket team kindly provided us with a copy of the plugin for testing. We installed it and imported the JSON file with the WP Rocket settings on your website. And we can confirm we have not detected any compatibility issue. Please watch the video by visiting the following link:
https://resources.developers4web.com/cff/tmp/2025/02/27/video_o.mp4
Note we visited the page from different browsers, even with them on incognito mode.
I suspect the problem on your website originates from the combination of multiple plugins.
Please contact us through our plugin website.
Best regards.
Hello @cambob
Actually you don’t need using “IF” operations in this case, you can do it with the MIN and MAX operations:
MIN(MAX(fieldname11, -1), 1)
However, if you want to embed IF operations, you can implement the equation as follows:
IF(fieldname11<-1, -1, IF(1<fieldname11, 1, fieldname11))
Note I embedded another IF operation as an operand of the first one.
Best regards.
Hello @spacemakerman
Please do not enclose the field’s name between single or double quotes. In the equation context, the plugin knows you are referring to the field’s name because you used the |n modifier. So, the equation would be:
(function() {
var dropdown = getField(fieldname5|n).jQueryRef().find('select');
dropdown.find('option:eq(2)').val(fieldname1);
return fieldname1;
})();Best regards.
Hello @spacemakerman
I’m sorry, I don’t understand what you mean by “dynamically pass a value from a field to a specific selector position within a single form”.
Do you want to change the value of a specific choice?
If it is the case, and you want to change the value of the third choice in the checkbox field fieldname123, you can insert a calculated field in the form as an auxiliary (you can hide it by ticking a checkbox in its settings), and enter the equation:
getField(fieldname123|n).jQueryRef().find('[type="checkbox"]:eq(2)').val(444);
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingHello @pexel
We’ve contacted WP Rocket and are awaiting their response. If you need personalized technical support, please visit the plugin’s website and contact us directly. Contact Us.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingForum: Plugins
In reply to: [Calculated Fields Form] Data Transfer to Popup from Buttons in CFFHello @spacemakerman
In this case, please edit it as follows:
<script>
fbuilderjQuery(document).on('click', function(evt){
let e = fbuilderjQuery(evt.target);
if( ! e.hasClass('.cff-popup-container') && ! e.closest('.cff-popup-container,.cff-button-field').length) fbuilderjQuery('.cff-popup-field').addClass('hide-strong');
});
</script>Or the buttons onclick events as follows:
fbuilderjQuery('.my-form .cff-popup-field').removeClass('hide-strong').show();
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingForum: Plugins
In reply to: [Calculated Fields Form] Problem with displaying elements in CFF editorHello @spacemakerman
I apologize for the inconvenience and thank you for providing the additional details. We have found the issue, it is related to the “Autocomplete” complementary plugin and released an update for the autocomplete plugin to fix it. Please install the latest update of the Autocomplete plugin and purge the website and browser caches.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingHello @pexel
That question is best directed to the WP Rocket support team. I have recommended the solutions within our plugin for such cases:
? Use the iframe attribute in the form shortcode.
? Exclude the page containing the form from the WP Rocket cache.Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingHello @pexel
No, the plugin does not work in that way. The form is rendered on the client side, but the form tag is added to the page’s source on the server. If the source page does not contain the form tag the issue is not related to the JS or CSS files. Your website is not reaching even our plugin code.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Form not loadingHello @pexel
Thank you very much for the clarification. However, if you examine the provided source code, it does not even include the
<form></form>
tag corresponding to our plugin. This can only occur if the page does not contain a form shortcode, or if your website loads a cached version before the form’s insertion (likely because you are pulling it from an outdated CDN server).Best regards.