kickboxerdan
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Use field values on results page with $_POSTHi, I would like to do some manual code in my results page template like:
<?php if ($fueltype == ‘petrol’ AND $coverage == ‘local’ AND $pricing ==’pump’)
{
<?php the_field(‘custom_field_10’); ?>;
}
<?php endif; ?>Where $fueltype and $coverage and $pricing refer to values from the Calculated Fields Form.
Is that possible at all?
Many thanks,
DanForum: Plugins
In reply to: [Tabby Responsive Tabs] Issue with pluginThanks for the reply. I will try doing this.
The reason I suspected addthis is because when you go to the clean link (without the addthis #.xxxxx ending) it doesn’t work. If you go to the page via url with the addthis #.xxxxx bit on directly it works alright.
Forum: Plugins
In reply to: [Calculated Fields Form] Results Page FormattingHi sorry for the bump but not sure if anyone has seen the last reply.
Forum: Plugins
In reply to: [Calculated Fields Form] Results Page FormattingHi, thanks for your reply.
I’ve tried this and the issue seems to be that I’ve got fields that don’t always show (dependant on other fields).
By getting rid of the : at the end of each field label, the email works great as that adds them in dynamically, but the results page messes up.
I’ve tried using the code above to manually put : in after each label but I end up with lines that just have a : on if the field is hidden/empty.
Not sure how to fix this? If this is something that you would be able to fix for us as custom work we could look at that route. My form is so close to being right!
Many thanks,
DanForum: Plugins
In reply to: [Calculated Fields Form] Results Page FormattingI’ve tried to fix by manually adding a colon and space after each field’s title, but in the email that gets sent out it then ends up with a double colon. Can’t seem to get both looking right!
Forum: Plugins
In reply to: [Calculated Fields Form] URL parameters – select fieldSorry, I was being stupid.
I forgot that the select field is nested within a div with the class name assigned. This is how I got it working:
(function(){
function urlParam(name){
var results = new RegExp(‘[\?&]’ + name + ‘=([^&#]*)’).exec(window.location.href);
return decodeURI(results[1]) || 0;
}
jQuery(‘.fuelcardselect div.dfield select’).val(urlParam(‘fuelcard’))
})()The URL parameter ‘?fuelcard=Esso Fleet Card’ preselects Esso Fleet Card correctly.
Hopefully this might help someone else though!
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Send data only if checkbox is setHi, I’m struggling with this as well.
I have a checkbox called “newsletteroptin” and if someone ticks it when filling form I want it to post the form data to my 3rd party form.
I have it working without the hook, and have tried implementing the hook from replies to other posts but can’t get it working. Help would be appreciated.
Thanks,
DanForum: Plugins
In reply to: [Calculated Fields Form] Print summaryOK, thank you. How do I get the latest update of the Pro version of the plugin?
Forum: Plugins
In reply to: [Calculated Fields Form] Print summaryHi,
That’s great thank you. I’ve got it working now.
There’s one other thing that seems to be a bit weird, and that’s plain text emails are being messed with in Outlook. It merges lots of lines onto one line and displays “Extra line breaks in this message were removed”. Is there any way to change the coding to ensure that line breaks are forced? I’ve seen around the net about adding a tab at the end of each line (“\t\n”) to force Outlook to start a new line. Would there be a way to change the plugin’s code to do this?
I’ve tried using HTML version, with
tags but the issue is that I only want to display fields that aren’t empty, and you end up with loads of blank lines where the
tags are displayed but that line’s content isn’t.Thanks,
DanThat’s great thank you – worked straight away.
I also worked out an extension for this to multiple page forms if it’s useful to anyone.
First Page
if(fieldname4=="Yes") jQuery('div.pbNext:eq(0)').show(); else jQuery('div.pbNext:eq(0)').hide();
Second Page
if(fieldname8=="Yes") jQuery('div.pbNext:eq(1)').show(); else jQuery('div.pbNext:eq(1)').hide();
Thanks so much, got it working now. Really appreciate your help, fantastic plugin.
Hi,
I have worked out that the problem was being caused by a piece of javascript I had on the page so that when someone completed the calculated fields form it would send to Google Analytics as an event. If I remove that it works as expected (sends text instead of value in the email).
This is the code I used:
<script>window.onload = function() { var form = document.getElementById('cp_calculatedfieldsf_pform_1'); form.onsubmit = function() {__gaTracker('send', 'event', 'form', 'completed', 'quickquote');}}</script>
Is there a way to do this properly?
Thanks,
DanHi,
Thanks for the reply.
I have reinstalled the plugin back to default and it is still outputting the value rather than the text and I don’t know why.
I want the text of the choices which sounds like what is meant to happen but it is giving me the values instead.
Thanks,
DanIt seems same problem as this which seemed to have been resolved but I am seeing this issue on new install.
Found a work around. When there isn’t much text in the tooltip it displays really offset. By increasing the amount of text in the tooltip it looks fine.