Forum Discussion
ScottMarks
6 years agoQrew Member
Howdy Chad,
Is this [object Object] field only used on a single record? Or does it need to be dynamic based on a specific record?
As of now, QB has no way of knowing what table or record it should look on for fid 43. Permalinking is out of the question?
Is this [object Object] field only used on a single record? Or does it need to be dynamic based on a specific record?
As of now, QB has no way of knowing what table or record it should look on for fid 43. Permalinking is out of the question?
- ChadBrandmire6 years agoQrew Assistant Captain[object Object] is not a field it is the value I'm getting for the input (on error).
The script is running on the html page.
Is what you're saying that I can't use jQuery to look at the window opener? - ScottMarks6 years agoQrew MemberGotchya. Take a look at my reply below- I think it may help. You can accomplish this with jQuery, but on a stand-alone code page, the jQuery will have no idea what #_fid_43 means, you have to provide it with an actual link, perhaps utilizing the API.
- ChadBrandmire6 years agoQrew Assistant CaptainI've played around with a couple of api methods. My problem with the api is how does my html page get the rid for the query?
- ScottMarks6 years agoQrew MemberOk, that's a solvable issue. Is the button that triggers the pop-up a usermade button? Or is it native quickbase?
It will have to be a userbased button, so you can pass a variable over to the pop-up, which then jQuery can utilize.
For example, in the pop-up button you can end the url with &rid=[Record ID#]
And then you can have Javascript like sovar rid = urlParam('rid');
Simple!
(Let me know if you're able to get this one working) - ChadBrandmire6 years agoQrew Assistant CaptainParams!!!
No api needed. just loaded my formula field in there.
<script>
var url_string = window.location.href;
var url = new URL(url_string);
var img = url.searchParams.get("img");
console.log(img);
$("#imgurl").val(img);
</script>
Thanks! - ScottMarks6 years agoQrew MemberWoo! Glad I was able to help you out, even if I didn't directly solve your issue. :^)