Forum Discussion

RyanStanford1's avatar
RyanStanford1
Qrew Captain
5 years ago

JQuery referencing by FID??

So I saw an example of JS code that Joshua Tate posted... and it included:

$("#_fid_6, #_fid_7, #_fid_14").on("change", function() {....}

Now, I've tried to get this to work... but I'm wondering if this notation no longer works in QB, and if anyone had a more up to date alternative for such functionality.

5 Replies

  • I can't say for absolute certainty if it will work or not - but I know from a brief glance that IDs aren't how Quick Base references fields now. They changed the formatting of their field IDs on the page to be 'tdl_#' (like 'tdl_6' or 'tdl_7')



    Try swapping out that syntax to see if it works


    Chayce Duncan | Director of Strategic Solutions
    (720) 739-1406 | chayceduncan@quandarycg.com
    Quandary Knowledge Base
    • RyanStanford1's avatar
      RyanStanford1
      Qrew Captain
      Yeah, I've known about that notation... my concern is those values seem to be made based on a grid, so if the arrangement on the form changes, so does the field that is "tdl_13" is now longer the same field.

      I'm seeing this type of notation as sort of my "back up plan" currently.
  • My use case for this is a broad Audit Trail/Log... track the old value, new value, and who changed what at what time..
    • RyanStanford1's avatar
      RyanStanford1
      Qrew Captain
      Yeah, this is going to be multiple fields... and we already have quite a few automations going already, don't want individual automations per field to get lost in the organization.