How to allow members to delete information they have submitted from a collection? Would it still show up on their profile?

So let’s say a member’s profile has “Age:” and “Country” as part of the information they can add to their profile using the databases and the collections. Let’s say a member submits their age but later on wants to remove this information and not have it be visible on their profile nor that they deleted it/never submitted it. The text “Age” should not be there, meaning if they don’t enter information for this it just won’t show up at all.

This is how I want it to look if they enter their age and country:
Country: United States
Age: 26

This is what I want to appear when they don’t enter their age but enter their country:
Country: United States

This is what I don’t want to appear if the age information is removed/not submitted but the country has:
Country: United States
Age:

So, how can I do this? Thanks thanks!!

Hello.

Depending on the element you use to display your data, you can check if an item field is empty and collapse the item or expand it if it is not.

You can see a sample implementation here. https://support.wix.com/en/article/corvid-tutorial-hiding-a-video-player-when-there-is-no-video-to-play

Good luck!