CodePeople2
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Cache problemHello @klingbeil
Do you have a copy of the page without the form to compare the metrics?
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Cache problemHello @klingbeil
Please provide the link to your webpage to check the form after you apply the modifications.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Cache problemHello @klingbeil
Please exclude the jQuery library, and our plugin resources
/wp-content/plugins/calculated-fields-form/*Bet regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Cache problemHello @klingbeil
Please visit the “Troubleshoot Area & General Settings” section by visiting the menu option “Calculated Fields Form > Troubleshoot Area & General Settings,” tick the “There is active an optimization plugin in WordPress” checkbox, and press the “Update” button.
Then, go to the WP Rocket settings and ensure you are not deferring or combining the jQuery library in the Javascript optimization section.
Finally, purge the website and browser caches.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Change CSS on Submit- Next- & Previous- buttonHello @svd89
Please include the CSS rules with the !important modifier.
#fbuilder fieldset{position:relative !important;}
#fbuilder .pbNext,
#fbuilder .pbSubmit{margin-left:52% !important;}
#fbuilder .pbPrevious{margin-left:48% !important;transform:translateX(-100%) !important;position:absolute !important;}Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Change CSS on Submit- Next- & Previous- buttonHello @svd89
Which CSS rules have you entered through the “Form Settings > Advanced Settings” tab?
Another alternative would be to enter the styles directly through the “Customize Form Design” attribute in the “Form Settings > Advanced Settings” tab as follows:
#fbuilder .pbSubmi,
#fbuilder .pbPrevious,
#fbuilder .pbNext{
color: white !important;
background-color: black !important;
border-color: transparent !important;
}Of course, using the preferred colors.
If you prefer centering the buttons, you can include the following styles definitions too:
#fbuilder fieldset{position:relative;}
#fbuilder .pbNext,
#fbuilder .pbSubmit{margin-left:52%;}
#fbuilder .pbPrevious{margin-left:48%;transform:translateX(-100%);position:absolute;}For additional questions, please provide the link to the page containing the form to check your design modifications.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Open the url when the button is clickedHello @metesey
Yes, of course, that’s possible. You need only to call the redirectToURL operation, in the “URL Operations” module, from the button onclick event.
Learn more about the redirectToURL operation by reading the following section in the plugin documentation:
https://cff.dwbooster.com/documentation#url-module
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Cache problemHello @klingbeil
Thank you very much for using our plugin. The easier solution is to pass the iframe attribute at 1 through the form shortcode as follows:
[CP_CALCULATED_FIELDS id="1" iframe="1"]But using your form ID.
Learn more about the shortcode and its attributes by reading the following section of the plugin documentation:
https://cff.dwbooster.com/documentation#insertion-page
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] calculated fieldHello @civilvicky
If the fields are required and you want to ensure all of them are populated before evaluating the equations, you must include conditional operations:
IF(AND(fieldname1|r != '', fieldname2|r !='', fieldname4|r != ''), fieldname1-fieldname2-fieldname4, '')And
IF(AND(fieldname1|r != '', fieldname2|r !='', fieldname3|r != ''), fieldname1-fieldname2-fieldname3, '')Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Hours to daysHello @svd89
Calculated fields are input tags, and the input tags are single line controls and do not render HTML, so, you must use the calculated field as an auxiliary by display the result in another control, like an “HTML Content” field.
Please be aware that our support services do not extend to the implementation of users’ projects. If you require personalized technical assistance, we encourage you to reach out to us directly through the plugin’s official website. Thank you for your understanding! Contact Us.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Hours to daysHello @svd89
In this case, you can include an “IF” conditional operation in the equation:
(function(){
let diff = DATEDIFF(fieldname1, fieldname2, 'mm/dd/yyyy hh:ii', 'd');
let result = MAX(1, diff['days']+IF(diff['hours']<12, 0, 1));
return CONCATENATE(result, IF(result==1, ' DAY', ' DAYS'));
})()Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] calculated fieldHello @civilvicky
Thank you very much for using our plugin.
Assuming the fields’ names in your form are:
(a) the number field fieldname1
(b) the number field fieldname2
(c) the calculate field fieldname3, untick the “Read Only” and “If the value entered manually, no evaluate equation” checkboxes in its equation.
(d) the calculate field fieldname4, untick the “Read Only” and “If the value entered manually, no evaluate equation” checkboxes in its equation.
In the calculated field fieldname3 enter the equation:
fieldname1-fieldname2-fieldname4And in the calculated fieldname4:
fieldname1-fieldname2-fieldname3Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Hours to daysHello @svd89
If 1 is the minimum value accepted, the result must be the maximum value between 1 and the result of the mathematical.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Hours to daysHello @svd89
Use the MAX operation:
(function(){
let diff = DATEDIFF(fieldname1, fieldname2, 'mm/dd/yyyy hh:ii', 'd');
return MAX(1, diff['days']+IF(diff['hours']<12, 0, 1));
})()Best regards.