alanstylez
Member
I am having trouble printing forms that have the answers to Yes/No questions. Originally, users were able to read and submit their answers to the questions, which would be entered into the database (demonstrated in List view with checks and 'X's), but not displayed when revisiting the form. CorePHP found a workaround to this (not sure exactly which code they changed, but they said, "This is core bug with fabric and some jquery/javascript confliction is there."), but that workaround did not extend to the Print or PDF (details) function.
After much trouble (detailed in http://fabrikar.com/forums/index.ph...working-or-remian-selected.39954/#post-203208), I was able to alter templates/prostar/css/template.css to add '.icon-1:before,' on line 5718 and '.icon-0:before,' on line 5797 for a workaround (checks and lines are different than the checks and Xs in the Fabrik List), which extends to the Print function, but not the PDF function. BTW, when looking over the Firebug : Net : CSS console for fabrik.css, I found the following code, which may be related and may be incomplete: [class^="icon-"].small{font-size: 10px;
I have read the forums exhaustively, and even tried the recommendations on http://fabrikar.com/forums/index.php?wiki/pdf-output/, but I either did this incorrectly, or it did not solve the problem. Now I have paid $71.05 for 1 month of professional support to try to resolve this issue. I am confident that Joomla is up-to-date (v3.3.6), but not confident that Fabrik is up-to-date because it no longer shows up in Extension Manager: Update and an FTP overwrite of my site using the fabrik-joomla3.zip from github.com causes some problems (if I remember correctly).
So, to get to the good stuff, here are some selected outputs from Firebug:
Console: fabrik-min.js (line 1)
Fabrik form::addElements: Cannot add unknown element: new FbYesno('[censored]___good_health', {"repeatCounter":0,"editable":true,"value":"1","label":"Are you in general good health?","defaultVal":"1","inRepeatGroup":false,"fullName":"[censored]___good_health","watchElements":[],"canRepeat":false,"isGroupJoin":false,"validations":false,"joinid":0})
HTML:
<div class="control-group fabrikElementContainer plg-yesno fb_el_[censored]___good_health span5">
<label class="fabrikLabel control-label" for="[censored]___good_health">
<i class="icon- small "></i>
Are you in general good health?
</label>
<div class="controls">
<div class="fabrikElement">
<div class="fabrikErrorMessage"> </div>
</div>
</div>
Script:
<div class="fabrikElement">
<div class="fabrikSubElementContainer" id="[censored]___good_health">
<fieldset class="radio btn-group">
<label class="fabrikgrid_0 ">
<input type="radio" class="fabrikinput " name="[censored]___good_health[]" value="0" /><span>No</span>
</label>
<label class="fabrikgrid_1 ">
<input type="radio" class="fabrikinput " name="[censored]___good_health[]" value="1" checked="checked" /><span>Yes</span>
</label>
</fieldset>
</div><!-- close subElementContainer --> </div><!-- end fabrikElement -->
Similarly, when I look at the page source of the popup that appears when clicking the print button (https://nuvacord.net/index.php?opti...rmid=315&listid=315&rowid=92&iframe=1&print=1), I see the following:
<div class="row-fluid " ><!-- start element row -->
<div class="fabrikElementContainer plg-yesno fb_el_[censored]___good_health_ro span5">
<div class="span4 fabrikLabel">
Are you in general good health? </div>
<div class="span8">
<div class="fabrikElement">
<div id="[censored]___good_health_ro"><i class="icon-1 " ></i></div> </div>
Finally, when using PDF debug - On (PDF still doesn't show the yes or no answers in any form), I get the following from form:view:groups :
[good_health] => stdClass Object
(
[startRow] => 1
[endRow] => 0
[error] =>
[plugin] => yesno
[hidden] =>
[id] => [censored]___good_health_ro
[className] => fb_el_[censored]___good_health_ro
[containerClass] => fabrikElementContainer plg-yesno fb_el_[censored]___good_health_ro
[element] => <div id="[censored]___good_health_ro"><i class="icon-1 " ></i></div>
[label_raw] => Are you in general good health?
[label] => <label for="[censored]___good_health_ro" class="fabrikLabel control-label" >Are you in general good health?</label>
[errorTag] => <span class="fabrikErrorMessage"></span>
[element_ro] => <i class="icon-1 " ></i>
[value] => 1
[element_raw] => 1
[tipAbove] =>
[tipBelow] =>
[tipSide] =>
[offset] => 0
[column] => style="float:left;width:44%;clear:both;"
=> span5
)
So, what's the problem and how do I fix it?
After much trouble (detailed in http://fabrikar.com/forums/index.ph...working-or-remian-selected.39954/#post-203208), I was able to alter templates/prostar/css/template.css to add '.icon-1:before,' on line 5718 and '.icon-0:before,' on line 5797 for a workaround (checks and lines are different than the checks and Xs in the Fabrik List), which extends to the Print function, but not the PDF function. BTW, when looking over the Firebug : Net : CSS console for fabrik.css, I found the following code, which may be related and may be incomplete: [class^="icon-"].small{font-size: 10px;
I have read the forums exhaustively, and even tried the recommendations on http://fabrikar.com/forums/index.php?wiki/pdf-output/, but I either did this incorrectly, or it did not solve the problem. Now I have paid $71.05 for 1 month of professional support to try to resolve this issue. I am confident that Joomla is up-to-date (v3.3.6), but not confident that Fabrik is up-to-date because it no longer shows up in Extension Manager: Update and an FTP overwrite of my site using the fabrik-joomla3.zip from github.com causes some problems (if I remember correctly).
So, to get to the good stuff, here are some selected outputs from Firebug:
Console: fabrik-min.js (line 1)
Fabrik form::addElements: Cannot add unknown element: new FbYesno('[censored]___good_health', {"repeatCounter":0,"editable":true,"value":"1","label":"Are you in general good health?","defaultVal":"1","inRepeatGroup":false,"fullName":"[censored]___good_health","watchElements":[],"canRepeat":false,"isGroupJoin":false,"validations":false,"joinid":0})
HTML:
<div class="control-group fabrikElementContainer plg-yesno fb_el_[censored]___good_health span5">
<label class="fabrikLabel control-label" for="[censored]___good_health">
<i class="icon- small "></i>
Are you in general good health?
</label>
<div class="controls">
<div class="fabrikElement">
<div class="fabrikErrorMessage"> </div>
</div>
</div>
Script:
<div class="fabrikElement">
<div class="fabrikSubElementContainer" id="[censored]___good_health">
<fieldset class="radio btn-group">
<label class="fabrikgrid_0 ">
<input type="radio" class="fabrikinput " name="[censored]___good_health[]" value="0" /><span>No</span>
</label>
<label class="fabrikgrid_1 ">
<input type="radio" class="fabrikinput " name="[censored]___good_health[]" value="1" checked="checked" /><span>Yes</span>
</label>
</fieldset>
</div><!-- close subElementContainer --> </div><!-- end fabrikElement -->
Similarly, when I look at the page source of the popup that appears when clicking the print button (https://nuvacord.net/index.php?opti...rmid=315&listid=315&rowid=92&iframe=1&print=1), I see the following:
<div class="row-fluid " ><!-- start element row -->
<div class="fabrikElementContainer plg-yesno fb_el_[censored]___good_health_ro span5">
<div class="span4 fabrikLabel">
Are you in general good health? </div>
<div class="span8">
<div class="fabrikElement">
<div id="[censored]___good_health_ro"><i class="icon-1 " ></i></div> </div>
Finally, when using PDF debug - On (PDF still doesn't show the yes or no answers in any form), I get the following from form:view:groups :
[good_health] => stdClass Object
(
[startRow] => 1
[endRow] => 0
[error] =>
[plugin] => yesno
[hidden] =>
[id] => [censored]___good_health_ro
[className] => fb_el_[censored]___good_health_ro
[containerClass] => fabrikElementContainer plg-yesno fb_el_[censored]___good_health_ro
[element] => <div id="[censored]___good_health_ro"><i class="icon-1 " ></i></div>
[label_raw] => Are you in general good health?
[label] => <label for="[censored]___good_health_ro" class="fabrikLabel control-label" >Are you in general good health?</label>
[errorTag] => <span class="fabrikErrorMessage"></span>
[element_ro] => <i class="icon-1 " ></i>
[value] => 1
[element_raw] => 1
[tipAbove] =>
[tipBelow] =>
[tipSide] =>
[offset] => 0
[column] => style="float:left;width:44%;clear:both;"
=> span5
)
So, what's the problem and how do I fix it?