I see that you use as a trigger the change of a text element, in my case the text was generated in a form previously and I need that when loading the page the text is displayed or not the text is connected to a database. Could you show me how to modify the code to get the result I want?
So you have a repeater that’s connected to a dataset, and you want to hide the text element if there’s no relevant info. Right?
Let’s say that the the field key in your database is “deliveryInfo”:
I tested the code and it shows me in all businesses the 2 options some with “has home delivery” and others “has no home delivery” I should hide the text boxes where it appears that there is no home delivery.
This is my code… #domicilio is text box conected to database, must show the text box only if the text in same box is equal to “-Servicio a domicilio-'” else hide.
sorry for my bad english am not programer.
$w.onReady
if($w("#domicilio") === '-Servicio a domicilio-') {
$w("#domicilio").show();
} else{
// Collapse the wishlist.
$w("#domicilio").hide();
}
Could you share the code? I don’t really program the truth. I don’t understand the apis I try to modify the code to build these functionalities and in fact I am starting to start programming.
@deleteduser thank you very much! Although I solved it before seeing your code you really gave me the light to understand my mistake, I appreciate your valuable answers. They are gold for newbies like me.