CodePeople2
Forum Replies Created
-
Forum: Reviews
In reply to: [Calculated Fields Form] Outstanding productHello @mjmangieri
Thank you very much for supporting our plugin and for your kind words.
Best regards.
Hello @ohtusabes
The solution is very simple: select the radio button field. In its settings, activate the “Design Settings” tab. Finally, in the section corresponding to the field’s label, enter the CSS rule pairs:
margin-bottom with value 20px
and
display with value block
In HTML, the labels are inline tags. You must assign the display block to ensure the margins take effect.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Odd Paragraph Height IssueHello @crystaltm
The URL provided is protected. Please try the following: enter the iframe attribute with value 1 in the form shortcode, like ex.
[CP_CALCULATED_FIELDS id="9" iframe="1"]in https://www.everydayfamilycooking.com/air-fryer-conversion-chart-calculator/
If you are inserting the form by using a page builder like the WordPress blocks editor, Elementor, or Divi, you should simply tick a checkbox in the form insertion module.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Odd Paragraph Height IssueHello @crystaltm
Thank you very much for using our plugin. Actually, the issue is not caused by the form but by the inline styles, specifically the
line-height:1.6;CSS rule. Please watch the following video:https://cff.dwbooster.com/resources/customer-support/2026/04/30/page.mp4
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsForum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsHello @imrobstephens
You are increasing in 40 for every new person over 4. In this case, you should edit the piece of code:
return result*(fieldname6+fieldname7)*IF(4<(fieldname6+fieldname7), 2, 1)+fieldname13;Similar to:
return result*(fieldname6+fieldname7)+MAX(fieldname6+fieldname7 - 4, 0)*40+fieldname13;It is a basic mathematics operation, and I use the MAX to ensure fieldname6+fieldname7-4 won’t be a negative number and affects the result.
Please note that we cannot implement your project through the forum. If you would like us to handle the implementation, you can request a custom coding service through our website: https://cff.dwbooster.com/customization
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsHello @imrobstephens
The first thing to understand in the following piece of code is what each
ifcondition represents (I’m referring to a specific section of your equation):let price_per_night = function(v){
if (GETDATETIMESTRING(v, 'dd/mm') == '24/12') return 122;
if (WEEKDAY(v) == 1) return 93;
if (WEEKDAY(v) == 7) return 93;
return 10;
};The variable
vcontains the date to evaluate, and the function returns the price associated with that specific date. Each conditional checks a different scenario:if (GETDATETIMESTRING(v, 'dd/mm') == '24/12')Checks whether the date
vis Christmas Eve (24/12). If so, it returns the special holiday price. Otherwise, it continues to the next condition.if (WEEKDAY(v) == 1)Checks whether the date
vis Sunday. If true, it returns the weekend price. If not, it proceeds to the next condition.if (WEEKDAY(v) == 7)Checks whether the date
vis Saturday. As above, it returns the weekend price if the condition is met.If none of these conditions are satisfied, the function returns the default price, which typically applies to weekdays (Monday through Friday).
In a previous message, you asked about including a special price for Christmas, but in your current logic it is no longer being used. Based on your updated requirements, the simplified version of the code would be:
let price_per_night = function(v){
if (WEEKDAY(v) == 1) return 122;
if (WEEKDAY(v) == 7) return 122;
return 93;
};Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsHello @imrobstephens
I described the equations for a new calculated field. If you want to add these elements to the existing fieldname8 equation, the solution would be:
(function () {
let result = 0;
let from = DATEOBJ(MIN(fieldname2, fieldname3), 'dd/mm/yyyy');
let to = DATEOBJ(MAX(fieldname2, fieldname3), 'dd/mm/yyyy');
let price_per_night = function(v){
if (GETDATETIMESTRING(v, 'dd/mm') == '24/12') return 30;
if (WEEKDAY(v) == 1) return 15;
if (WEEKDAY(v) == 7) return 15;
return 10;
};
if (fieldname2 == fieldname3)
to = DATEOBJ(fieldname3 + 1, 'dd/mm/yyyy');
while (from < to) {
result = result+price_per_night(from);
from = DATETIMESUM(from, 'dd/mm/yyyy', 1, 'd');
}
return result*(fieldname6+fieldname7)*IF(4<(fieldname6+fieldname7), 2, 1)+fieldname13;
})()Note, that I simply edited the line of code
return result;in the fieldname8 equation as follows:return result*(fieldname6+fieldname7)*IF(4<(fieldname6+fieldname7), 2, 1)+fieldname13;Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsHello @imrobstephens,
Yes, of course—you can extend your calculations as needed.
The equation currently assigned to fieldname8 calculates the price for a single user. If the number of users involved in the calculation is only the number of adults (fieldname6), you can use the following equation:
fieldname8*fieldname6*IF(4<fieldname6, 2, 1)This multiplies the price per user (fieldname8) by the number of users (fieldname6). If the number of users is greater than 4, the result is doubled; otherwise, it remains unchanged because multiply by 1 does not affect the result.
f the same price applies to both adults and children, you can update the equation as follows:
fieldname8*(fieldname6+fieldname7)*IF(4<(fieldname6+fieldname7), 2, 1)Here, the total number of users is calculated by adding adults (fieldname6) and children (fieldname7).
Finally, if you want to include the cost of additional services (fieldname13), the equation would be:
fieldname8*(fieldname6+fieldname7)*IF(4<(fieldname6+fieldname7), 2, 1)+fieldname13Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsHello @imrobstephens
I’m evaluating manually the equation I provided:
(function () {
let result = 0;
let from = DATEOBJ(MIN(fieldname2, fieldname3), 'dd/mm/yyyy');
let to = DATEOBJ(MAX(fieldname2, fieldname3), 'dd/mm/yyyy');
let price_per_night = function(v){
if (GETDATETIMESTRING(v, 'dd/mm') == '24/12') return 30;
if (WEEKDAY(v) == 1) return 15;
if (WEEKDAY(v) == 7) return 15;
return 10;
};
if (fieldname2 == fieldname3)
to = DATEOBJ(fieldname3 + 1, 'dd/mm/yyyy');
while (from < to) {
result = result+price_per_night(from);
from = DATETIMESUM(from, 'dd/mm/yyyy', 1, 'd');
}
return result;
})()with the current form results and they match.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Calcute weekdays and weekendsHello @imrobstephens
The solution I provided is compatible with every plugin distribution, including the free one. I’m testing your form and fieldname8 is evaluating correctly. Please watch the video I recorded just now:
https://cff.dwbooster.com/resources/wordpress-forum/2026-04-29/video.mp4
Best regards.
Forum: Reviews
In reply to: [Calculated Fields Form] StunningForum: Plugins
In reply to: [Calculated Fields Form] New custom form lostHello @taastrategies
I’m sorry, but I don’t have the necessary privileges to delete forum entries.
In the forms list—accessible through the “Calculated Fields Form” menu option—you will find a column displaying the form names. If no custom form name is provided, the system will automatically use the form title instead. If the form title is also removed, the corresponding field will appear empty in the forms list.
Please note that this only affects the display within the admin forms list and does not impact how the forms appear on the public-facing website.
That said, I recommend assigning a name or title to each form, as it will make them much easier to identify and manage.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] New custom form lostHello @taastrategies
Thank you very much for using our plugin. Are you referring to the form 6? I visited its link and the form is there:
https://lagunawoodstowers.com/?cff-form=6
Best regards.