zxpw
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Calculator ignoring attributes from shortcodeYes it does seem like their rules are a bit overzealous. Nevertheless, I am glad a solution has finally been found.
Thank you so much for your help and patience. It’s much appreciated.
Forum: Plugins
In reply to: [Calculated Fields Form] Calculator ignoring attributes from shortcodeI managed to get it working with some slight modifications:
if (window.cff_var) {
if ('spend' in cff_var) getField(fieldname21|n).setVal(cff_var.spend);
if ('programme' in cff_var) getField(fieldname17|n).setVal(cff_var.programme);
if ('bonus' in cff_var) getField(fieldname20|n).setVal(cff_var.bonus);
}Can you foresee any issues with this approach?
Forum: Plugins
In reply to: [Calculated Fields Form] Calculator ignoring attributes from shortcodeI’ve spoken to my host and they’ve told me that it’s likely being blocked because of: Immediately Invoked Function Expressions (IIFEs), Obfuscated Code or Unusual Variable Names.
Is there possibly another way to write the code to avoid this problem?
Forum: Plugins
In reply to: [Calculated Fields Form] Calculator ignoring attributes from shortcodeThanks for the quick response. Unfortunately, any time I try to apply the changes, it is blocked by my host’s firewall.
That’s brilliant. Thank so you much.
That works, thank you. Is there any way I can also get it to separate thousands with commas? I’ve tried enabling it in the field’s settings but that seems to be ignored by the formula.
That worked perfectly. Thank you so much.