+ Start a Discussion
David OvellaDavid Ovella 

​is it possible to make this happen in a visaulforce page?

if you see in the image below, the field Nro__c has two squares where I can give them values, I would like to know if there's a way to make this happen in visualforce page?

the Idea is: depending of the picklist Identificador__c , my field Nro__c has to change its look.
is it possible?
User-added image
Yes. you can use the rendered attribute to show/hide the fields in Visualforce. You can maybe try something like below
<apex:inputField value="{!identifierPicklist}">
  <apex:actionSupport event="onchange" rerender="theNroSection1,theNroSection2"/>
<apex:outputPanel id="theNroSection1" rendered="{!identifierPicklist = 'RUC'}">
 <!-- the 1st format goes here -->
<apex:outputPanel id="theNroSection2" rendered="{!identifierPicklist = 'C.I'}">
<!-- the 2nd format goes here -->
Hope this helps.