Title: Debounce Server Side Functions
Last modified: February 3, 2026

---

# Debounce Server Side Functions

 *  Resolved [mulmer](https://wordpress.org/support/users/mulmer/)
 * (@mulmer)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/debounce-server-side-functions/)
 * I have server side functions running with live updates and a slider input. When
   sliding the slider the browser makes high frequency calls to the backend. Would
   it be possible to add a debouce time so that a call is made at most every 300
   ms or so?

Viewing 1 replies (of 1 total)

 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/debounce-server-side-functions/#post-18808344)
 * Hello [@mulmer](https://wordpress.org/support/users/mulmer/)
 * If you require controlling when a specific equation is evaluated, you have multiple
   alternatives.
 * I’ll try to describe the process with a hypothetical example:
 * Assuming you have two slider fields in the form: fieldname1 and fieldname2, and
   you implemented the server side equation “sum_fields”. Also, you inserted the
   calculated fieldname3 whose equation is:
 *     ```wp-block-code
       SERVER_SIDE('sum_fields', fieldname1, fieldname2);
       ```
   
 * However, you don’t want to call the server side equation immediately. You want
   to call it one second after the user stops sliding the slider field.
 * First option:
 * You can use the “cffProxy” operation in the equation by editing it as follows:
 *     ```wp-block-code
       (function(){    function delayEquation(f1, f2, callback) {        if ( 'flag' in window ) clearTimeout(flag);        flag = setTimeout(function(){             let result = SERVER_SIDE('sum_fields', f1, f2);            callback(result);},             1000        );            };    return cffProxy(delayEquation, fieldname1, fieldname1);})()
       ```
   
 * Learn more about the cffProxy operation by reading the following blog post:
   [https://cff.dwbooster.com/blog/2019/05/17/third-party-connection-module](https://cff.dwbooster.com/blog/2019/05/17/third-party-connection-module)
 * The second option is to stop the dynamic evaluation of the equation, and evaluate
   it manually from an “HTML Content” field:
    1. Select the calculated field “fieldname3” and tick the box attribute “Do not 
       evaluate dynamically” in its settings. Now, this specific equation won’t be 
       evaluated dynamically.
    2. Insert an “HTML Content” field in the form, tick the box in its settings to 
       support scripts, and finally enter the following script code in its content.
 *     ```wp-block-code
       <script>fbuilderjQuery(document).on('formReady', function(){  let field1 = getField('fieldname1');  let field2 = getField('fieldname2');  fbuilderjQuery(document).on('change', '[name="'+field1.name+'"],[name="'+field2.name+'"]', function(){    if('flag' in window) clearTimeout(flag);    flag = setTimeout(function(){EVALEQUATION('fieldname3')}, 1000);  });});</script>
       ```
   
 * Best regards.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdebounce-server-side-functions%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * Last activity: [4 months, 1 week ago](https://wordpress.org/support/topic/debounce-server-side-functions/#post-18808344)
 * Status: resolved