javascript - Image Onload - Quickbase -


i'm trying follow dan diebolt's 'image onload" technique inject custom js script think i'm tripping @ first part - process says:

create field following formula definition , include in form/report.

so i've created text-formula field named '-', allowed html , pasted formula in "formula" section of field:

[-]= "<img qbu=\"module\" src=\"/i/clear2x2.gif\" " & "onload=\"javascript:if(typeof qbu=='undefined'){qbu={};$.getscript('" & urlroot() & "db/" & dbid() & "?a=dbpage&pagename=module.js&rand='+math.random())}\">" 

when attempt save alert says "a formula may not contain reference directly or indirectly through formula." doing wrong? i've tried adding field form anyway , doesn't seem anything.

these steps i'm following:

[https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=93][1]

thanks.

remove [-] = line. that's you're getting error from. should have following in formula:

"<img qbu=\"module\" src=\"/i/clear2x2.gif\" " & "onload=\"javascript:if(typeof qbu=='undefined'){qbu={};$.getscript('" & urlroot() & "db/" & dbid() & "?a=dbpage&pagename=module.js&rand='+math.random())}\">" 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -