In each pair of inputs, the first passes values to a renderUI() function in server, which then determines the choices in the second input.