This topic is locked
[SOLVED]

 Hide a row (label and field) bases in another value

12/18/2011 9:06:56 AM
PHPRunner General questions
N
notuo author

Hi.
I have a row in my edit table and the code generated is as follows:



<TR class="runner-row style1">

<TD class="runner-cc runner-cc1">{BEGIN puesto2_label}Otro puesto{END puesto2_label}</TD>

<TD class="runner-cc alt">{$puesto2_editcontrol}&nbsp; &lt;- Llenar sólo si hay dos puestos a evaluar

</TD>

</TR>


I know how to hide $puesto2_editcontrol but I don't know how to hide puesto2_label nor the final comment: "&nbsp; &lt;- Llenar sólo si hay dos puestos a evaluar"
What I need is to hide the whole row.
I'll appreciate any advise here.
Thanks

C
cgphp 12/18/2011
$xt->assign("puesto2_fieldblock",FALSE);



Check this article for more info: http://xlinesoft.com/phprunner/docs/hide_controls_on_add_edit_pages.htm

N
notuo author 12/18/2011

Thank you Cristian.

N
notuo author 12/20/2011

Just one thing.
I tested in an empty table and worked fine, but in this case I have some text in the same row to explain some for the field: &lt;- Llenar sólo si hay dos puestos a evaluar

<TD class="runner-cc alt">{$puesto2_editcontrol} &lt;- Llenar sólo si hay dos puestos a evaluar</TD>


Because of that (I guess) the edit control is hidden but no this text.
Is this OK or am I doing something wrong?.
Thanks