i am working on a website and have a button that is connected to my database (dataset1).
the field that have the pdf files field name : TDS and button is button 1 to open the pdf. but on some items there is no pfd file. how can i make the button hide if the TDS field of that item is blank.
I hope someone can help me.
thank you i have use this code but they are not working for a pdf document in database
Any solution to this? I am having the same issue and reading through many forum threads there is no current answer to this.
I have use this and it works for me
$w . onReady ( function (){ $w ( ‘#yourDataset’ ). onReady (()=>{ $w ( “#yourRepeater” ). onItemReady (( $item , itemData )=>{ let sTitle = itemData . specialTitle ; if ( sTitle === “” || sTitle === null || sTitle === undefined ){ $item ( “#yourElement” ). hide ();} else { $item ( “#yourElement” ). show ();}});});})