How do I hide a repeater item not connected to a database

Hi there!
I have a repeater which is not connected to a databse. Each repeater container has four items: Name, Bio, Photo, and website link. My problem: Not all containers have a website link, therefore here’s what I’m trying to do: I want to hide the website link for those who don’t have a website.
What I’ve tried:
I’ve adapted basic code snippets suggested in various links in the forum and I’ve had no luck. I’ve also tried deleting the field for those without a website, but it deletes it in all the repeater containers.
Additional info:
My repeater is #repeater3. The text field with the website is #text59. For those with a website, I have a link in the rich text field (#text59) linked to the words :Visit Website>
For those without, I’ve put in the text Special Title.
I’d appreciate any help in this matter. I’m attaching a screenshot of the repeater


Also:
Why I’m not connecting the retpeater to a database: I’m only one of many collaborators who manage the website and while I’m able to connect the repeater to a database and I’ve figured out how to hide one item there, the other collaborators might not be able to work with it and I won’t be around to explain how things work to future managers.

You will have better results explaining how a database (spreadsheet) works than trying to explain how to code something custom that will hide or show a button when a link is missing or not.

Just connect it to a database and add code to the repeater to check if there is data or not, etc.

Or don’t use a repeater at all. Instead use static boxes with text.

I think it’s going to be complicated to explain either way. Thanks for your suggestion! I’ll try out both static boxes v/s database before taking a call.

1 Like

Hopefully something works out for you. It is always tricky trying to setup a website for non-techie people to maintain.

Sometimes people question why I build in so many different approaches. Well the answer is: Because I build it in a way that I know will be easy for the Owner to maintain.

Sometimes it takes longer to build, but that’s ok. In the end, it’s their website and they get to keep up with it. Not me.

Hi @codequeen , I found a simple workaround:

  1. I got rid of the visit website link altogether.
  2. Instead, I connected the author name to a new, rich text field in the database, which I linked to respective websites where applicable.

Thus, no code, no explaining, nothing.
Sometimes, the solution is to avoid the problem :slight_smile: And yes, hard agree on the difficulties of setting up a website for collaborators to manage. Thanks for your help and follow up. Much appreciated! :heart_hands:

1 Like

I love this workaround!!! So simple and so efficient!!! :clap:t3:

2 Likes