https://supertokens.com/ logo
Set form id to custom value
k

käegiluppi

05/22/2023, 8:03 AM
supertokens-auth-react
Is it possible to set the form id to a custom value?
r

rp

05/22/2023, 8:16 AM
Hey @käegiluppi. I don’t think that’s possible. What’s the use case though?
k

käegiluppi

05/22/2023, 8:18 AM
the use case is auto-detection of form submissions by hubspot
or more correctly, hubspot can detect form submissions, but having a form ID allows to use hubspot functionalities in regards to the form by having it identifiable there with it's id
r

rp

05/22/2023, 8:39 AM
i see. So can you not give hubspot the form ID that we have?
k

käegiluppi

05/22/2023, 8:53 AM
it has no form id

https://cdn.discordapp.com/attachments/1110115740691988610/1110128167684943872/image.png

r

rp

05/22/2023, 9:42 AM
hmm. Right. Maybe you could add it via JS DOM manipulation?
k

käegiluppi

05/22/2023, 10:30 AM
Yes, that's possible. Just wondered if it's available out of the box 🙂 Thanks!
r

rp

05/22/2023, 10:30 AM
cool