gregorr64
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Field Autocompletion still showing when turned offHi,
I’ve tried that and the issue is still there.
Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Field Autocompletion still showing when turned offHi,
One of the forms that is having this issue is:
https://northayrshireicehockeyclub.co.uk/club-shop/adults-padded-jacket/
Thanks,
GregorRight that makes sense, I’ll do that.
Thanks,
GregorI’ve noticed that when a checkbox field isn’t ticked, the field name doesn’t show up. I’m using a checkbox field as a yes/no field. Is there a better way to do this so that I can see the “no” selection on the orders?
Thanks,
GregorSorry, my mistake.
The fields are hidden by a dependency, appears to be working now.
Thanks,
GregorHi,
I’ve tried that and I’m still only getting the “:”.
Thanks,
GregorHi,
I’ve put the code into the summary section but it’s only showing the “:” of each line.
Any ideas?
Sorry about that, I’ll use the contact us area next time.
Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Compare Selection Text rather than ValueAhhh right, thanks for the help!
Forum: Plugins
In reply to: [Calculated Fields Form] Compare Selection Text rather than ValueHi,
That works perfectly, thanks for the help!
Just another query – how do I go about rounding the final total to 2 decimal places? I’ve used ROUND(fieldname33,0.01) justnow but it sometimes gives me weird outputs such as
rounding £364.34 to £364.34000000000003.Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Compare Selection Text rather than ValueHi,
Yeah I changed it to the corresponding fields. I’ll try that out justnow!
Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Compare Selection Text rather than ValueHi,
I tried it out like this:
(function(){
var v1 = fieldname1, v2 = fieldname2,
t1 = jQuery(‘[id*=”fieldname’+’1_”] option’).attr(‘vt’),
t2 = jQuery(‘[id*=”fieldname’+’2_”] option’).attr(‘vt’);if(t1== t2) return 1;
return 0;})()
However it didn’t appear to work as expected. Have I done something wrong?
Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Compare Selection Text rather than ValueThe user chooses a worktop colour out of a list. This worktop colour is assigned a band colour between 1-5 for pricing. They can then choose if they want upstands and what colour they would like them (priced in bands also).
However if they choose the same colour of worktop and upstands, then they don’t need to buy an extra sheet of material to make them therefore it is cheaper.
Right now I’ve implemented it so that it’s using the value (1-5) to compare the colours however this would mean that they could pick white and grey (both band 1) and would get the discount even though they shouldn’t as the colours are different.
I know that I can implement it by using an IF statement to assign the band number once the colours have been compared however this adds a lot of extra risk of errors.
This is why I was wondering if there is any way that I could compare the colours by name so that it would definitely only allow the discount if both colours are the same.
Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Use Product Colours to create drop down list in formHi,
Worked out what went wrong.
When I copied and pasted the code you had sent, it changed the ” marks to & quot.
This is now working properly.
Thanks for the help,
Gregor- This reply was modified 6 years, 3 months ago by gregorr64.
Forum: Plugins
In reply to: [Calculated Fields Form] Use Product Colours to create drop down list in formI’ve tried to use the hidden field with the html you sent there, however my IF statement isn’t returning the expected result.
(function(){
if(fieldname43== “red”) return 0;
if(fieldname43== “black”) return 1;
if(fieldname43== “white”) return 2;
if(fieldname43== “green”) return 3;
if(fieldname43== “blue”) return 4;
return 99;
})();When I select Red/Black/White in the product page my IF field is still returning 99.
Any ideas where I’ve went wrong?
Thanks,
GregorForum: Plugins
In reply to: [Calculated Fields Form] Use Product Colours to create drop down list in formThat’s great thanks, I’ll try that out justnow!
Thanks,
Gregor