Answers.Body: <p>The short answer is probably yes, depending.</p>
  <p>But if it's being submitted anonymously, then the question is: 'what contact id do you want to be saved here?'.</p>
  <p>The simple answer is that in the form builder, you can specific a default (e.g. to a contact called &quot;anonymous&quot;).</p>
  <p>But likely, even better, if that form url is getting sent via civimail, you can include the recipient's contact id in the url so that &quot;their&quot; contact id is encoded in the url and gets picked up by the form and saved.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-04T15:37:34.373Z
Answers.LastActivityDate: 2024-12-04T15:37:34.373Z
Answers.UserDisplayName: Alan Dixon
Body: <p>Is it possible to have a default contact_id whenever a form builder is submitted anonymously?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-03T17:53:07.497Z
Comments.Text: can you clarify what the goal is here?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-04T03:44:19.177Z
Comments.Text: @petednz-fuzion Currently, when trying to setup scheduled reminder with `SavedSearch` of `AfformSubmission`, it does not send an email to the `manual recipient` if AfformSubmission has null contact_id. It is null because it was submitted anonymously. The FormBuilder has "Verify submission before processing" checked. So we used Contact Field Id from "AfformSubmit".
  
  When I tried to change the contact_id in the database, to an existing contact, the scheduled reminder was able to send an email, based on the Manual Recipient.
  So I was thinking of setting a default contact_id.
Comments.UserDisplayName: david
Tags: <formbuilder>
Title: Default contact_id in AfformSubmission
ThreadText: # Default contact_id in AfformSubmission
  
  (Asked by: username_0 on 2024-12-03)
  
  Is it possible to have a default contact\_id whenever a form builder is submitted anonymously?
  
  **Tags:** formbuilder
  
  > **Comments:**
  > **username_1**: can you clarify what the goal is here?  
  > **username_0**: @username_1 Currently, when trying to setup scheduled reminder with `SavedSearch` of `AfformSubmission`, it does not send an email to the `manual recipient` if AfformSubmission has null contact_id. It is null because it was submitted anonymously. The FormBuilder has "Verify submission before processing" checked. So we used Contact Field Id from "AfformSubmit".  When I tried to change the contact_id in the database, to an existing contact, the scheduled reminder was able to send an email, based on the Manual Recipient. So I was thinking of setting a default contact_id.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-12-04. Score: 1 | Accepted answer
  
  The short answer is probably yes, depending.
  
  But if it's being submitted anonymously, then the question is: 'what contact id do you want to be saved here?'.
  
  The simple answer is that in the form builder, you can specific a default (e.g. to a contact called "anonymous").
  
  But likely, even better, if that form url is getting sent via civimail, you can include the recipient's contact id in the url so that "their" contact id is encoded in the url and gets picked up by the form and saved.
  
  
  ---
  
  