codepeople
Forum Replies Created
-
Forum: Plugins
In reply to: [Appointment Hour Booking - Booking Calendar] Name Field giving error messageHi,
Remove the “Equal to” validation set for the two involved fields. Example:

https://apphourbooking.dwbooster.com/customdownloads/equal-to-rule.png
Thank you for using the plugin!
Forum: Plugins
In reply to: [Calculated Fields Form] Show result of Field with shortcodeHello @denba
Thank you very much for using our plugin.
I’m sorry, we can’t reply about that in this forum. We are not allowed to support any customers in these forums and the shortcode for results is a commercial feature.
For pro or commercial product support, please get in touch with us directly on our site. This includes any pre-sales topics as well.
Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.
Thank you.
Forum: Plugins
In reply to: [Loading Page with Loading Screen] Exclude specific links or skype linkHello @peopleinside
Please follow the steps below (we will include the modifications in the next plugin update):
1. Open the “/wp-content/plugins/loading-page/js/links.min.js” file with the text editor of your choice.
2. Go to the piece of code:
/^(mailto|tel|javascript):/iAnd edit it as follows:
/^(mailto|skype|tel|javascript):/i3. Finally, clear the website and browser caches after editing the file.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Conditional and depndencyHello @akitaro
I’m sorry, I’ve forgotten the second question.
The option here would be check the field value as part of the onclick event code.
For example, assuming the DGPR field is the fieldname1, and you want to display an alert message when the user presses the button and the fieldname1 field is ticked. In this hypothetical example, you can enter the following piece of code as the button onclick event:
if(getField('fieldname1').val()) alert('the message');As the code is in another context (it is not an equation) to access the field value you must call the getField operation to get field’s object, and the val method to get its value.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Conditional and depndencyHello @akitaro
Please edit the equation as follows:
(function(){
var result = fieldname9+fieldname10+fieldname11+fieldname12+fieldname13;
HIDEFIELD(fieldname19|n);
HIDEFIELD(fieldname20|n);
HIDEFIELD(fieldname21|n);
if( result <= 5 ) SHOWFIELD(fieldname19|n);
else if( result <= 10 ) SHOWFIELD(fieldname20|n);
else if( result <= 25 ) SHOWFIELD(fieldname21|n);
return result;
})()Note I used the fields fieldname19|n, fieldname20|n, and fieldname21|n with the |n modifier. The plugin replaces the fields’ names by their values before evaluating the equations. The |n modifier tells the plugin you are referring to the fields’ names directly and not their values.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] General rule for the entire formHello @mate2001
In short, you want the result of the equation be the sum of both numbers, only if both operands are different from zero. In this case, the equation can be implemented as follows:
IF(AND(fieldname1, fieldname2), fieldname1+fieldname2, 0)And that’s all.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Predefined ValueHello @mate2001
Thank you very much for using our plugin.
In short, you have an equation, for example, fieldname123+fieldname456, and you want to assign its result to another field in the form, the number field fieldname1, but you want to do it only the first time when the fieldname1 field is empty.
In this hypothetical case, you can implement the equation in the calculated field as follows:
(function(){
let result = fieldname123+fieldname456;
let f = getField(fieldname1|n);
if(f.val(true, true) == '') f.setVal(result);
return result;
})()Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Field Type Date Time missing secondsHello @denba
In the current plugin version, it would require to customize your plugin copy, or emulate the time component with dropdown fields. The plugin includes multiple alternatives to distribute the fields in columns. Please watch the following video:
For example, assuming that fieldname1 is a date field, fieldname2 is a dropdown list for hours, fieldname3 is another dropdown list for minutes, and fieldname4 is a third dropdown field for seconds.
As part of the equation you can include the piece of code:
let d = CONCATENATE(CDATE(fieldname1, 'yyyy/mm/dd'), ' ', fieldname2|r, ':', fieldname3|r, ':', fieldname4|r);Now the d variable contains a text with the format “yyyy/mm/dd hh:ii:ss” and you can use it with the Date/Time operations:
https://cff.dwbooster.com/documentation#datetime-module
Best regards.
Hello @saralanda
Thank you very much for using our plugin. If you want the scope of the boardmonth variable to be global, simply use it without declaring the variable with
var(function(){
boardmonth='';
...
})()Note the equations are evaluated depending on whether the fields used in them are modified. So, you do not control the order in which the equations are evaluated. In the other equations where you want to use the boardmonth variable, you must check first if the variable exists.
Best regards.
Hi,
Please update to the latest version of the plugin (#1.4.84 or later) to correct that issue.
Thank you for using the plugin!
Hi,
Yes, you can translate the form with WPML. You will need to enable the feature “Temporarily Enabling Auto-Register Strings” from WPML so it detects the texts entered in the form:
Thank you for using the plugin!
Forum: Plugins
In reply to: [Calculated Fields Form] Check a Checkbox with CodeHello @eberkland
Not exactly. The code
.prop('checked',true)does not trigger the onchange events required to evaluate the dependencies and the equations. For this reason, the code in the other support thread must call the onchange event directly. ThesetValmethod does both operations. It ticks the corresponding choices and triggers an onchange event at the end of the process.However, it does not disable the other choices in the checkbox field.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Check a Checkbox with CodeHello @eberkland
The previous implementation ticks the fieldname2 choices based on the fieldname1 value. Other choices remain visible and selectable. If you need to hide or deactivate the unrelated options, you must implement a more complex equation.
If you need a custom coding service to implement a custom behavior, like the one described above, you can contact us directly through the plugin website. Contact Us.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Check a Checkbox with CodeHello @eberkland
Assuming you have the fieldname1, with two choices, fruits and vegetables, and the checkbox field fieldname2 with the choices bananas, strawberries, carrots, and lettuce. If the user selects fruits in fieldname1 you want to tick the bananas, strawberries choices in fieldname2, carrots, and lettuce choices if the user selects vegetables.
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 enter the equation:
getField(fieldname2|n).setVal(IF(fieldname1=='fruits', ['bananas', 'strawberries'], ['carrots', 'lettuce']))Or if you prefer to implement the equation with function structure:
(function(){
if(fieldname1=='fruits'){
getField(fieldname2|n).setVal(['bananas', 'strawberries']);
} else {
getField(fieldname2|n).setVal(['carrots', 'lettuce']);
}
})()Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] WEEKDAYNAME not workingHello @beananimal
If your console says WEEKDAYNAME is not defined you have installed an outdated plugin version. Please install the latest plugin update.
If you have installed the plugin Developer version, you should contact us directly through the plugin website. Please note we are not allowed to support any customers in these forums.
For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.
Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.
Thank you.