firstusadata
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravity PDF] Show/Hide PDF Content Based on User SelectionThank you very much once again Jake.
And thank you for the awesome plugin!
Forum: Plugins
In reply to: [Gravity PDF] Show/Hide PDF Content Based on User SelectionJake,
Thank you for all of the help you have been able to provide so far with this issue.
I had one more question, how would I go about accomplish this:
I have a dropdown field giving options a, b, c, d, & e. I would like to show one div if either a, b, or c, are selected, and another div if d or e are selected. I tried something like:
<?php if ($form_data['field'][86] == 'a'or 'b'or 'c'): ?><div>A, B, or C are Selected</div> <?php else: ?><div>D or E is selected</div> <?php endif; ?>But it does not seem to be working for me. I believe this may just be a syntax error on my part, but if there is any advice you could provide, that would be very much appreciated.
Forum: Plugins
In reply to: [Gravity PDF] Show/Hide PDF Content Based on User SelectionI figured it out!
MY “&” sign seems to have been messing things up.
Here is my current code in case anyone else runs across this thread.
<?php if ($form_data['field'][202] == 'Arts and Music'): ?> Arts and Music Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Calpian'): ?> Calpian Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Culinary'): ?> Culinary Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Electronics'): ?> Electronics Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Family and Kids'): ?> Family and Kids Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Fashion'): ?> Fashion Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Financial'): ?> Financial Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Going Green'): ?> Going Green Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Health and Fitness'): ?> Health and Fitness Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Home Decor and Gardening'): ?> Home Decor Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Outdoors'): ?> Outdoors Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Pets and Animals'): ?> Pets and Animals Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Tools'): ?> Tools Selected <?php else: ?> <?php endif; ?> <?php if ($form_data['field'][202] == 'Travel'): ?> Travel Selected <?php else: ?> <?php endif; ?>Forum: Plugins
In reply to: [Gravity PDF] Show/Hide PDF Content Based on User SelectionJake Jackson,
Thank you for all of the information you have been able to provide regarding my issue. I was able to get my radio toggle to properly show depending on the input. I would like to add similar functionality to a dropdown list.
My current PHP code looks as such:
<?php if ($form_data['field'][202] == 'Arts & Music'): ?> Arts & Music Selected <?php else: ?> Arts & Music Not Selected <?php endif; ?>And my data array shows:
`[202.Industry Keyword] => Arts & Music
[202] => Arts & Music
[Industry Keyword] => Arts & Music
[202.Industry Keyword_name] => Arts & Music
[202_name] => Arts & Music
[Industry Keyword_name] => Arts & Music`However, when I try adding this PHP statement to my custom template, it always displays “Arts & Music Not Selected”
Is there something that I am missing, or is the issue caused by something else? If you can help me out with this as well that would be perfect.
Thank you!
Forum: Plugins
In reply to: [Gravity PDF] Show/Hide PDF Content Based on User SelectionThank you very much for your reply, I should have realized that error myself.
If the form field were to be a dropdown list instead of a radio toggle, would I still use this similar function? Just include the List’s Item Name instead of ‘Yes’ ?
To clarify, I have a dropdown list where the user selects their industry keyword type. Depending on this selection, a unique image is added to the PDF.
I tried accomplishing this with the method above, but it did not work.Forum: Plugins
In reply to: [Gravity PDF] Show/Hide PDF Content Based on User SelectionBlue Liquid Designs,
I tried adding this code into my custom PDF template for a simple test
<?php if ( 'Yes' == $form_data['field'][25] ) { <div>This is a test of the radio toggle</div> } ?>However my PDF just turns into a blank white screen when I test it. I added the code to dreamweaver and it states there is syntax error on the line with the div content. Can you provide anymore insight into this issue?
Forum: Plugins
In reply to: [Gravity PDF] Charts & GraphsI’ve been looking for instruction on how to install this, is there any further details you can provide? I uploaded the file to my PDF_EXTENDED_TEMPLATES directory, and followed the documentation to try and load a test graph
http://mpdf1.com/manual/index.php?tid=364
But I just get a blank screen from this, I even used “view page source” and there is still nothing there. Any suggestions would be very much appreciated. Or if there is another program available to accomplish this, that would be great as well.