• Is there any way to record the url of the page that has the [pdb_record] shortcode in it when a record is edited and saved?

    I’ve seen in the development tools on the page with the [pdb_record] that there is a hidden field in the form called shortcode_page which contains exactly what I’m looking for.

    However, is there anyway make this field visible either in the admin view of PDB, maybe under the Record Info tab or ideally to add it to the outgoing email which is sent whenever someone updates a record?

    I’ve tried inserting [shortcode_page] into the Record Update Notification Email page but the field is always blank when the email is sent…

    Does anyone have any other ideas? Thanks!

    I’ve got around 100 fields split across multiple groups and it would be great to know which page was used by someone to submit their edits to a particular record.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    You can do this with a hidden field that records the current page. That is explained here…

    The field records the page name only the first time it is used, so if the record is edited on a different page, the field will still have the value of the first page the record was edited on. Also, you want to make sure the field is not in a signup form of you’re using one, because it will save that page name.

    If you need a field that will always record the name of the last page the record was edited on, you’ll need to use an API filter to get that.

Viewing 1 replies (of 1 total)
  • The topic ‘Can I record the url of the page that has the [pdb_record] shortcode in it?’ is closed to new replies.