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
AkhileshSinghAkhileshSingh 

how to remove Enter inside string field(street field of address) while using on lightning page

Hi ,

I am using address field on lightning page .when user used Enter key inside Street field of Address  my call-out get failed.
 
Best Answer chosen by AkhileshSingh
Shubham_KumarShubham_Kumar
Hi Akhilesh

You can use 
string.replaceAll('\n','')
This will replace all the enter in the string.

P.S : Mark this as the best answer if this helped.

Thanks
Shubham Kumar

All Answers

Shubham_KumarShubham_Kumar
Hi Akhilesh

You can use 
string.replaceAll('\n','')
This will replace all the enter in the string.

P.S : Mark this as the best answer if this helped.

Thanks
Shubham Kumar
This was selected as the best answer
AkhileshSinghAkhileshSingh
Thank you Shubham .I used this function in  apex side  and it works as expected.