<p:selectOneMenu id="tUsuario" required="true" requiredMessage="Campo obligatorio" >
<f:selectItem itemLabel="Seleccione uno" itemValue="" />
<f:selectItem itemLabel="Autoridad" itemValue="1" />
<f:selectItem itemLabel="Administrador" itemValue="2" />
<f:selectItem itemLabel="Administrador de Empresa" itemValue="3" />
<f:selectItem itemLabel="Conductor" itemValue="4" />
<f:selectItem itemLabel="Funcionario" itemValue="5" />
</p:selectOneMenu>
<p:selectOneMenu id="empresa" required="true" requiredMessage="Campo obligatorio" >
<f:selectItem itemLabel="Seleccione una" itemValue="" />
<f:selectItem itemLabel="Empresa 1" itemValue="1" />
<f:selectItem itemLabel="Empresa 2" itemValue="2" />
<f:selectItem itemLabel="Empresa 3" itemValue="3" />
</p:selectOneMenu>
Hi, I have 2 comboboxes and I want that when I select options 3 or 4 in the first combo, the second combo appears otherwise it remains hidden, how can I do this?
I have tried but I can't, if someone can help me I appreciate it.
JAVASCRIPT ON SIBERIA TEMPLATE
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Hi,
Can you send your code along with the following test file?
This way, I can help you more easily.
https://github.com/primefaces/primefaces-test
Best Regards,
Can you send your code along with the following test file?
This way, I can help you more easily.
https://github.com/primefaces/primefaces-test
Best Regards,
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest