WPIntell

Source evidence

Debounce Server Side Functions

Calculated Fields Form – AI Form Builder for WordPress – Contact, Payment, Quote, Quiz & More · support · 2026-02-03T13:43:00+00:00

questionsentiment
mediumseverity
0.6relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 27 rows with source links

25.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
mulmer resolved
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? Hello @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: 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: (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 The second option is to stop the dynamic evaluation of the equation, and evaluate it manually from an “HTML Content” field: 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. 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. <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.

Comments

1 shown
CodePeople2 2026-02-03T14:48:00+00:00

Hello @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: 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: (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 The second option is to stop the dynamic evaluation of the equation, and evaluate it manually from an “HTML Content” field: 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. 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. <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.