<aura:attribute name="options" type="List" default="[
    {'label': 'peopleU', 'value': 'option1'},
    {'label': 'peopleD', 'value': 'option2'}]"/>
    <aura:attribute name="value" type="String" default=""/>

<lightning:radioGroup name="radioGroupRequired"
                                  label="Type People"
                                  options="{! v.options }"
                                  value="{! v.value }"
                                  required="true" onchange="{!c.sayHello}"/>


sayHello : function(component, event, helper) {

if the radio peopleU on change I need to show an input on the screen, I do not know how to make it invisible

        <div class="slds-col slds-size_1-of-4 slds-hidden">
             <lightning:input name="cpf" type="text" label="CPF" value=" 
             {!v.form.nome}" />
New contributor
iouoki is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

put on hold as unclear what you're asking by David Reed, glls, Reshma, Pranay Jaiswal, Raul Feb 13 at 10:58

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • please refer to the Component Documentation – glls Feb 12 at 0:14
  • I'm doing this, but I'm a beginner and I'm having difficulties – iouoki Feb 12 at 0:28
  • there is a code snippet on the doc i linked which you can literally copy paste and it will work. If you are not quite sure of what it is you are doing, than perhaps a better place for you to learn would be Trailheads – glls Feb 12 at 0:40