How to implement custom validation rule on an input text field of a custom input Lightning component, based on value from input picklist field?
This is the validation rule I had on Salesforce classic(custom object definition)
AND( ISPICKVAL( Picklist__c , "SelectedValue-01"), ISBLANK( TextBox__c ) )
Error message must show up right above the Text box field: "As you have choosed: SelectedValue-01 value, this text box cannot be empty." How to implement this in a JS controller? I couldn't find any documentations for implementing this, any references would be really appreciated.
Referred this Salesforce Documentation which gave me some insight, but not a logical condition for validation rule on a text box based on a Picklist value.