Lightning Component Visibility filter to check if value is null

  • How can I set a Lightning Component visibility based on text filed value = NULL. I have a text area field and I want to only display one component if Text area field contains value. I can't seem to be able to find documentation that explains checking value for NULL.

    I have looked at this Article but that doesn't have information I need.

    enter image description here

    Do you want to render text area based on some user input>

    @Samir Yes, That is correct.

  • sfdcfox

    sfdcfox Correct answer

    3 years ago

    Use the empty string value '':

    enter image description here

    Just wondering as the answer of @Samir (the one below) can do the trick too, what will be best practice in general, using this filter or using the code

    @manza Coding this in to the component means you have to deploy code each time you make a change. If all you want are filters, you probably want to do it this way.

License under CC-BY-SA with attribution

Content dated before 7/24/2021 11:53 AM