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
SvanekeySvanekey 

Pass input Parameter from Flow to LWC

Dear Trailblazers, 

I am having a screen flow where I use LWC component. In the screen flow I have a variable named "RecDescription". I use this variable as a input parameter for LWC component. (Screen shoot below)User-added image

In my LWC JS file, I defne it as  @api RecDescription. 

My question is: How to use the value from RecDescription to LWC input field? 

I have a input field "Comments" when user opens the LWC screen, the value from @api RecDescription should be automaticaly visible into "Comments" field. (Please see screen shoot below)

<lightning-textarea name="Comments" label="Comments" value={commentsValue} onchange={handleChangeComments}></lightning-textarea>

User-added image

I need JS method to get value from @api RecDescription and set to be visible into "Comments" input field. 

 

Please share your thoughts. Thanks a lot. 

AnkaiahAnkaiah (Salesforce Developers) 
Hi Giorgi,

Refer the link have solution for similar kind of ask will help you to proceed further.
https://www.infallibletechie.com/2021/09/how-to-pass-parameter-from-flow-to.html

If this helps, Please mark it as best answer.

thanks!!