JAVASCRIPT ON SIBERIA TEMPLATE

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
pcristiani7
Posts: 5
Joined: 30 May 2023, 21:27

11 Jun 2023, 04:32

<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.

olgubasak
Posts: 98
Joined: 05 Jan 2023, 11:05

12 Jun 2023, 10:21

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,

Post Reply

Return to “Siberia - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests