Skip to main content
Question

Get a field value for html page?

  • May 22, 2018
  • 0 replies
  • 133 views

I'm trying to set the value of an input on a popup html page onload using the value in a form field. But all i'm getting is this: "[object Object]"
 


code:

<script>
var timg = window.opener.$("#_fid_43");
 $("#imgurl").val(timg);
</script> 



I've tried a few different things, but end with that same result.
fid_43 is a Formula- Rich Text field that gives the image url for a record.

Any ideas how to get that URL into that input?
This topic has been closed for replies.

  • Registered
  • May 22, 2018
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?

  • Registered
  • May 22, 2018
Replying to myself here:

You can utilize API_GetRecordInfo for this, should you have all the prerequisites.. (RecordID & DBID)

https://<DOMAIN>.quickbase.com/db/<DBID>?a=API_GetRecordInfo&rid=<RID>&apptoken=<APPTOKEN>

You'll then have to parse out the response for the specific _fid_ you're looking for, and you can return those results.

Let me know if this helps at all.