function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SIB AdminSIB Admin 

display text on the angular page based on the dropdown value selected in salesforce

I have a picklist in salesforce with API name "No_Penalty__c".It has different options e.g 30 Day Out, 45 Day Out, 60 Day Out and then I have an angular page where I have to display the text based on what option user selects from that picklist.So e.g if user selects 30 Day Out, on the angular page I should see "Agreement may be cancelled with no penalty upon 30 days' written notice".Similarly, if user selects 60 Day Out from the picklist then on the Angular page it should display "Agreement may be cancelled with no penalty upon 60 days' written notice".I tried doing the following
                           <div ng-show="No_Penalty__c === '30 Day Out'">
                                <b>Agreement may be cancelled with no penalty upon 30 days' written notice</b>
                           </div>

                            <div ng-show="No_Penalty__c === '60 Day Out'">
                                <b>Agreement may be cancelled with no penalty upon 60 days' written notice</b>
                           </div>

But then it displays both texts on the angular page irrespective of what option is selected in picklist.
SIB AdminSIB Admin
Any help? This is very urgent and I am stuck.