• Koustav Banerjee
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
I am using a function to concatenate as follows in my lightning controller class 

getCompValue : function(component, event, helper) {
     
     var compVal = component.find("comp_id").get("v.value");
     var compValStr = '\'' + compVal + '\'';
     component.set("v.componentName", compValStr);
        
   },

but on save the value is becoming 
 'a2u180000003p27AAA'
Do you have any resolution on the same how to concatenate
' + <<variable>> + ' to get the result as 'a2u180000003p27AAA' 
Fax Number is displaying as (201) 434-2399 on save while entering as 2014342399 in the lightning UI.

Can you please prvide a resolution for this
I am using a function to concatenate as follows in my lightning controller class 

getCompValue : function(component, event, helper) {
     
     var compVal = component.find("comp_id").get("v.value");
     var compValStr = '\'' + compVal + '\'';
     component.set("v.componentName", compValStr);
        
   },

but on save the value is becoming 
 &#39;a2u180000003p27AAA&#39;
Do you have any resolution on the same how to concatenate
' + <<variable>> + ' to get the result as 'a2u180000003p27AAA' 
Fax Number is displaying as (201) 434-2399 on save while entering as 2014342399 in the lightning UI.

Can you please prvide a resolution for this