You need to sign in to do that
Don't have an account?
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)
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>
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.
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!!