gmw0113
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingOne last quick question if you would entertain…
Is there a way to do something like PREC and ROUND together?
Say a computation produces the number 1.18.
And we want to show just one decimal place, but rounded up.
PREC alone, if I understand it, would show: 1.1
ROUND alone, if I understand it, would show just 1.
Is there a combination or ability to show 1.2?
Cheers
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingThanks for all your help, much appreciated.
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingIt’s confusing to automatically run a formula that is based upon user input, before any user input is made. That makes very little sense.
That’s like having a form with a submit button, and without entering any data, automatically submitting it on load – that’s essentially what you’re doing.
Literally in the “Form Settings” panel, it says, “Eval the equations in the onchange and keyup events”
That should mean that the formulas are ONLY run when a user has input values, as that would constitute onchange, and keyup events. However, you’re saying that formulas are run automatically on load- that’s the only way that division by 0 would be relevant, and why 0.0000 is displayed. This seems contradictory to how it should work both from a logical and settings standpoint.
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingYes I’ve read all your replies, but it wasn’t clear until now that your plugin is *automatically* running the formula with no user input, no submission, no input of any kind. That’s kind of a major detail.
- This reply was modified 4 years, 2 months ago by gmw0113.
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingThanks-
What’s rather odd is that some forms are hiding the result before any entries are made, and others are displaying 0.0000 and I see no functional differences.
Showing 0.000:
Calc Field: No label, Read Only, Equation: PREC(fieldname2*2.21,4);
Not showing anything until inputs filled:
Calc Field: No Label, Read Only, Equation: PREC((fieldname2*12 / fieldname3 * fieldname4),4);
Only differences I see are that the second form has 3 inputs, the first form has 1- but I don’t see why that would matter.
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingForum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingWhy are there placeholder inputs on the Calculated Fields if they are not actually used?
- This reply was modified 4 years, 2 months ago by gmw0113.
Forum: Plugins
In reply to: [Calculated Fields Form] Placeholders for Calculated Form Field not workingHi, thanks for the quick reply, the sample equation was just written off the top of my head, in real usage, I have it as you indicated, so that’s not the issue.
I’m not sure what you mean by, “The placeholders are not values”. I don’t want it to be a value? I don’t want the placeholder to affect the equation of submissions.
Please explain the following:
IF(AND(fieldname2, fieldname3), PREC(fieldname2+fieldname3, 4), ”)
What is AND doing in this ? And is taking the variables of what? Field names, and equation, and a placeholder? What???
Or point me to the documentation that discusses, thanks!
Forum: Plugins
In reply to: [HTTP Headers] Content Security Policy SettingsOk so finally figured it out- your plugin instructions and or documentation could assist users who haven’t done these before.
It seems the syntax that must be entered, using the above examples, would be this:
use.typekit.net
Once I dropped the protocol (even though your example shows them) then it started to work!
So to do multiple would be like:
use.typekit.net use.fontawesome.com
^ No quotes, just spaces~
Hope that helps~
Forum: Plugins
In reply to: [HTTP Headers] Content Security Policy SettingsAt best, I get something like this:
Refused to load the script ‘https://use.typekit.net/abcdefg.js’ because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ filesystem: https://use.typekit.net/*”. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.
Forum: Plugins
In reply to: [Posts Table with Search & Sort] Linking to specific sort?Here’s what I’m doing, it works but it’s not super elegant.
I’m grabbing a value from the Url, in this case website.com#advocacy.
Then I set advocacy as the option value, then I run a change function after. This basically does an auto select of the advocacy option right after load, so it does flash the original sort. But at least it mostly works.
‘
<script type=”text/javascript”>
jQuery(window).bind(“load”, function () {
var selector = ‘select[name=”ptp_filter_library_category”]’;
var hash = window.location.hash.substr(1);
var optionHash = ‘ option[value=”‘ + hash + ‘”]’;
var combined = jQuery(selector + optionHash);if (combined.length > 0){
//console.log(‘exists’);
jQuery(selector).val(hash);
combined.change();
}
});
</script>`Forum: Plugins
In reply to: [Posts Table with Search & Sort] Linking to specific sort?I got it working by using setting the value of the option to advocacy, and then running a .change() function, but I’m wondering if there is a more elegant way.
Forum: Plugins
In reply to: [WebP Express] Redirection to conversion script is not enabledSame issue here.
Forum: Plugins
In reply to: [Enable Media Replace] Incompatibility With Beaver BuilderAny update to this? This has started to become a problem recently. Need to replace media files and update their names, always used Enable Media Replace for the job.
The most frustrating part, is the images that need replacing aren’t being used in Beaver Builder- but yet the whole rename option is still disallowed.
Maybe the plugin should check to see if the image is actually used in Beaver Builder before disallowing.