CodePeople2
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] print buttonHello @buptrick
Thank you very much for using our plugin. I tested the print button on your form and the ads are not included in the printed form. Please watch the video by visiting the following link:
https://resources.developers4web.com/cff/tmp/2024/11/25/print_o.mp4
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] LCP ProblemHello @pexel
The plugin is not designed to distribute forms to third parties from websites. If the form is generated on your website, and loaded via iframe in third-party websites, you must set the height as iframe attributes or you will have the CLS problem. If you want us to implement a specific solution to your business logic we can contact us through the plugin website (https://cff.dwbooster.com/customization)
Regarding LCP. The plugin renders the form on the client side (the browser). If you want to solve the LCP issue, you have some alternatives. You can activate the form cache to render it on the server side (it is available on the commercial plugin options), or you can use the iframe attribute as I recommended previously. Watch its impact on the LCP in the following video:
https://resources.developers4web.com/cff/tmp/2024/11/25/video_o.mp4
Or finally, you can move the form outside the viewport not at the top of your web page.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] LCP ProblemHello @pexel
Could you please include the
iframe="1"
attribute in the form shortcode and let me know if the issue persists?https://cff.dwbooster.com/documentation#insertion-page
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] LCP ProblemHello @pexel
I’m checking your web page with “Lighthouse,” and the issue you are reporting is not happening. Our plugin includes a style block to prevent the CLS issue. It calculates the form height for different screen sizes. Please check your webpage’s HTML source.
<style>@media (max-width:480px){#cp_calculatedfieldsf_pform_1{min-height:538px;}}@media (min-width:1024px){#cp_calculatedfieldsf_pform_1{min-height:520px;}}</style>
Please note you included your own block. Remove it and let only the block generated by the plugin.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Conflict with Bulk Plugin Activation Using TGMPAHello @pankakmehla
If you need help with a commercial product, you should contact us directly through the plugin website. Contact Us
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Conflict with Bulk Plugin Activation Using TGMPAForum: Plugins
In reply to: [Calculated Fields Form] Submit CFF programmaticallyHello @sajtfokus
A form is an HTML tag, the HTML tags are rendered in browsers. To submit a form, you must access the page that contains the form even if you submits the form by code.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Conflict with Bulk Plugin Activation Using TGMPAHello @pankakmehla
Thank you very much for using our plugin. If you are using the TGMPA library I assume you are developing a theme or plugin that activates third-party plugins including ours. Could you please provide the theme or plugin to check the issue?
Best regards.
Forum: Reviews
In reply to: [Calculated Fields Form] Great Plugin for Custom FormsForum: Plugins
In reply to: [Calculated Fields Form] Submit CFF programmaticallyHello @sajtfokus
You can use the getURLParameter operation in the “URL Operations” module to populate the form fields with URL parameters. (https://cff.dwbooster.com/documentation#url-module)
For example, assuming you have the form fields fieldname1 and fieldname2 and want to prefill them with the values of the URL parameters param1, and param2.
Insert an “HTML Content” field in the form and enter the following piece of code as its content:
<script>
fbuilderjQuery(document).on('formReady', function(){
getField('fieldname1').setVal(getURLParameter('param1', ''));
getField('fieldname2').setVal(getURLParameter('param2', ''));
});
</script>Populate your App with the equations results will depend on your App requirements.
If you need help communicating the plugin fields with your App, you can contact us directly through the plugin website: Contact Us
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Auto scroll on checkbox clickHello @rosco12345
Thank you very much. Please insert an “HTML Content” field at the beginning of your form and enter the following piece of code as its content:
<script>
fbuilderjQuery(document).on('change', ':input[name*="fieldname"]', function(){
let f = fbuilderjQuery(this).closest('.fields');
if ( ! f.hasClass('cff-calculated-field') ) {
let n = f.next('.fields:visible');
if (n.length) n[0].scrollIntoView({behavior:'smooth'});
}
});
</script>Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Submit CFF programmaticallyHello @sajtfokus
I’m sorry, but I don’t understand what you mean by “How can the form get submitted without actually going to the form and filling out the fields?” to submit a form you must access the form, or at least the page that contains the form. If you have a form created with our plugin on the page, you can submit it by coding with a piece of code similar to:
fbuilderjQuery('form.cff-form').submit();
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Auto scroll on checkbox clickHello @rosco12345
Yes, that’s possible, however, the code will depend on the form structure. Could you please provide the link to the page containing the form to check its structure?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Deselect STANDARD optionHello @massimo1971
Yes, that’s possible. You can insert a calculated field in the form to be used as an auxiliary (you can hide it by ticking a checkbox in its settings), and check the value of the field for the model through its equation, and based on it you can evaluate
getField(93).setVal(0);
orgetField(93).setVal(1250);
1250 is the value of the STANDARD choice.If you need a custom coding service to implement your project, you can contact us through the plugin website. Contact Us
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Deselect STANDARD optionHello @massimo1971
Thank you very much for using our plugin. Since the STANDARD option belongs to the fieldname93 field, you can call the following piece of code as part of an equation or button onclick event:
getField(93).setVal(0);
Best regards.