CodePeople2
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Export form as a styled pdf ?Hello @metusalem
Thank you for using our plugin!
For all our commercial distributions, the plugin comes with the ability to send users an email copy containing the information collected in the form – including the calculated field results. However, if you want to generate a dynamic PDF file with the submitted data, you will need to upgrade to the Platinum version and activate the “CFF – PDF Generator” add-on.
Please read our blog post to learn how to create dynamic PDF files:
https://cff.dwbooster.com/blog/2020/07/19/pdf-generator
And watch the following video:
https://www.youtube.com/watch?v=TXLMB3_w-Xg
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] install the commercial versionHello @benlashley80
Thank you so much for upgrading your plugin copy. Please note that we can’t reply about that in this forum. We are not allowed to support any customers in these forums.
For pro or commercial product support, please contact us directly on our site.
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: [Calculated Fields Form] write to server side text file?Hello @benlashley80
The commercial editions of the plugin store all data submitted via the form in your website’s database. You can access this data through the “Calculated Fields Form > Entries” menu option (https://cff.dwbooster.com/documentation#check-submissions). This section also allows you to export submissions to a CSV file, which can be used with Excel, Google Sheets, or any other spreadsheet program.
If you want to store the data collected by the form in another database or custom tables, or generate additional files, you can do so using the “cp_calculatedfieldsf_insert_in_database.php” file included with the Developer and Platinum versions of the plugin. For more information, please refer to https://cff.dwbooster.com/documentation#third-party-database.
Finally, if you want to append the data directly into a CSV file instead of doing it manually by pressing a button in the “Entries” section, you can activate the “CFV – Generator” add-on distributed with the plugin Platinum version ( https://cff.dwbooster.com/blog/2020/06/01/csv-generator-google-sheet )
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
You have some typos in the equations. In an equation, you entered feildname214 instead of fieldname214, and in another equation, you entered feildname227 instead of fieldname227
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
Your question was how to implement an OR, not an AND, and your code was only checking if the value in type matches any of the fields’ values. If it is the behavior you want to implement, the code is correct. Note that I’m checking the equation structure only, and I don’t know if your fields exist on the form, or what values they have assigned.
Please provide the link to the page containing the form.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
SHOWFIELD does not return anything. It only displays a field hidden with CSS or by calling the HIDEFIELD operation. So, including
<b>Type:</b> SHOWFIELD('fieldname123');in an “HTML Content” field is incorrect. Also, the operations are JavaScript functions. If you insert that code directly in an “HTML Content” field, it will be identified as text.If you want to include the value of the fieldname123 field in the HTML Content field, you must use a tag with the
data-cff-field="fieldname123"attribute as I described in a previous entry.Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
The process is simpler by using the “IN” operation:
(function(){
for(let i in typedb) {
if(IN(typedb[i]['type'], [fieldname240, fieldname241, fieldname242, fieldname243])) return typedb[i]['tp'];
}
return '';
})()Learn more about the “IN” operation by reading the “Logical Operations” module documentation:
https://cff.dwbooster.com/documentation#conditions-module
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
I’m not sure about your question. However, if you want to hide a field until you display it explicitly by code, you can do the following.
Select the field (I will assume it is the fieldname123, you should use the field name on your form) and enter the predefined class name
hide-strongthrough its “Add CSS Layout Keywords” attribute.Now, if you want to display this field by pressing a button, or a script code in an “HTML Content” field, you can use the piece of code:
SHOWFIELD('fieldname123');Or if you want to display it from a calculated field equation:
SHOWFIELD(fieldname123|n);Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
You should insert a calculated field that does the sum, and then use it in the HTML Content field. For example, if you have the fieldname4 that is a calculated field with the equation
fieldname2+fieldname3The HTML piece of code in the “HTML Content” field would be:<p>Thank you <span data-cff-field="fieldname1"></span>, your total will be <span data-cff-field="fieldname4"></span>.</p>Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] display fieldname values in html?Hello @benlashley80
You need only to insert an “HTML Content” field with tags like span, p, div, or any other HTML tag with the
data-cff-fieldattribute indicating the field whose value you want to display inside the tag.E.g.
<p>Thank you <span data-cff-field="fieldname1"></span>, your total will be <span data-cff-field="fieldname2"></span>.</p>Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] age calculation default inputHello @benlashley80
There are no space characters (fieldname243|r). The plugin works as follows:
It takes the equations and replaces the fields’ names with their corresponding values, but preprocesses them first to be used in mathematical expressions, etc. Additionally, the plugin supports the modifiers (the modifiers modify the plugin’s default behavior).
Currently, there are three modifiers:|rallows you to access the raw field’s value, without preprocessing, e.g., fieldname243|r|ntells the plugin you are referring to the field’s name directly instead of its value, e.g., ACTIVATEFIELD(fieldname1|n);|vonly supported by radio buttons, checkboxes, and dropdown fields. In these controls, you can decide between submitting the choices’ texts or values, the|vmodifier tells the plugin you are referring to the information that would be submitted. If you have configured the field to submit the choices’ texts, the fieldname1|v allows you to access the selected choice text from the equation instead of its value (by using simply fieldname1, you would be accessing the selected choice’s value).Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] age calculation default helpHello @benlashley80
I responded to your question in your other thread:
https://ww.wp.xz.cn/support/topic/age-calculation-default-input/#post-18386757
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] age calculation default inputHello @benlashley80
You must ensure the field is not empty before generating the output:
IF(fieldname243|r, DATEDIFF(TODAY(), fieldname243 , 'yyyy-mm-dd','y') ['years'], '')Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] Logic for dependancies?Hello @benlashley80
Yes, you can. Please tick the “Edit rule manually” link (please look at your screenshot), and enter a valid JavaScript comparison structure:
30<value && value<36Note the “AND” operator is the double ampersand symbol.
Best regards.
Forum: Plugins
In reply to: [Calculated Fields Form] multiple options formExcellent !!!
Best regards.