How to have two similar text lables attached to a database ?

Dear Community members,

Thank you for the support on the previous post. Now, I have another doubt and I hope you will help me to solve that issue as well.

I have two text labels. I named them as “text1”.text and “text2”.text. I have link text1.text to a field in a database. So, when the site loads, I can see text1 with the relevant information. I want text2 also have to have the same information to show. I thought, if text1.text = text2.text it will appear. But, it did not. How can I achieve this ? Thank You.

Kind Regards,
Antru

Please note assigning text, $w(“#text1”).text = $w(“#text2”).text, will not work in your case since text1 will show the placeholder value of text2 and not the value from the database. You can resolve the issue by connecting both text elements to the same database field directly.

Hi Sam Eru, Thank You for the information.
But, I have another requirement. I want $w(“text2”).text to connect to a different database as an input. So, I thought of getting the data from text1 to text2. Is there any solution ?