Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How to keep only the selected ion-radio value when back to form?

$
0
0

@anespa wrote:

Dear Friends,
I have a 2 step form , in which in first step there is an ion-radio which select and pass a value to next form page. But when I back to first form and click another ion-radio it also selected . But in 2nd page the value get is latest one (No problem in functionality). But when back to first form all previous selected items in selected state . How it can avoid ?

My relevant code is

       <ion-list *ngIf="searchFlag||result?.length > 0">
     
         
                    <ion-item-divider color="light"><h2>{{"Institution List"|translate}}</h2></ion-item-divider>
                   
                    <ion-item text-wrap  *ngFor="let searchdata of result; let i = index">
                       <ion-label>{{searchdata.Column1}}</ion-label>
                       <ion-radio value="{{searchdata.intLBID}}" name="LB" (ionSelect)="setLB(searchdata.intLBID)" ></ion-radio>
                    </ion-item>
                    <ion-item text-wrap  *ngIf="searchFlag && result?.length==null">
                       No such institution found , please try again.
                    </ion-item>        
       
     </ion-list>

Please help

Thanks
Anes

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>