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
Ekta Gupta 23Ekta Gupta 23 

Need to display dynamic message with the screen component of flow

Hi All,

I have a requirement to implement a button on Account. when user clicks on that button, it validates few mandatory fields fields like - Gender, Date of Birth and Primary Address. If user populates all the fields, this button converts the record from 'ABC' record type to 'XYZ' record type.

I created a custom button 'Convert', which is calling a flow in the backend. In that flow, I  build a screen component which is displaying text based on the empty mandatory fields:
User-added imageBut user experience is not really good, it shows somwthing like below:
User-added image
I want to display this message dynamically something like below:
(If all the other mandatory fields are filled except Gender, Salutation)

'Kindly fill Gender and Salutation'

Thanks in Advance
AbhishekAbhishek (Salesforce Developers) 
This can be achieved by adding in component visibility on the display text  

Saying display the image only when the Gender field  ISblank

User-added image

If it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Ekta Gupta 23Ekta Gupta 23
@Abhishek:  Thanks I am already using component visibility so if Birthdate is not filled- it shows 'Please enter Birthdate' , if Salutation is missing -it shows 'Please enter Salutation' .

Is there any way I can show all the empty fields in a single message rather than have seperate text for each field.