How to check custom form of record without loading...
# ask-stanley-ai
s
How to check custom form of record without loading the record in a before load user event script?
c
AI generated answer (using internal Slack threads):
To check the custom form of a record without loading the record in a before load user event script, you can use the
<http://context.request.parameters.cf|context.request.parameters.cf>
to get the custom form ID from the URL parameters. This is because when a record is loaded, the custom form ID is appended to the URL as a parameter. Here is a sample code snippet:
Copy code
javascript
var customForm = <http://context.request.parameters.cf|context.request.parameters.cf>;
This will give you the ID of the custom form that is currently being used to load the record. You can then use this ID to perform any necessary checks or operations. Please note that this method only works in a before load user event script because the
<http://context.request.parameters.cf|context.request.parameters.cf>
is only available during the before load event. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853376389
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837753
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834688485
Please provide your feedback on this answer.