Answers.Body: <p>Yes, you can embed JS using below hooks</p>
  <p><a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterAngular/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterAngular/</a></p>
  <p><a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_coreResourceList/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_coreResourceList/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-09-10T12:44:56.073Z
Answers.Text: Hi again. Going back into as it seems alterAngular is more efficient. But I am stuck in how to embed a js file or scipt into alterAngular. If you have any suggestions or a reading into suggestion, please let me know. Thank you
Answers.UserDisplayName: darkmode
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-21T08:02:28.730Z
Answers.LastActivityDate: 2024-06-21T08:02:28.730Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Is it possible to capture (like in javascript) autocomplete field change/select event in Form Builder public url form page. The scenario is we want to get data to populate another field that is dependent of another field.
  Example:</p>
  <p>Car Models: has options to select</p>
  <p>Car Model Colors: no options yet, is dependent of the first field to fetch what colors are available.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-06-21T23:56:17.837Z
Comments.Text: This has also been asked (and answered) in MatterMost - pls link to the thread
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-06-24T00:31:03.030Z
Comments.Text: @petednz-fuzion Thanks for the feedback. Are there key words you suggest I search in the community chat to find them.
Comments.UserDisplayName: darkmode
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-06-24T20:01:02.460Z
Comments.Text: A bit of misunderstanding perhaps. I am flagging that you (I assume) also asked this question in MM and it would help to acknowledge that so folk can easily jump to MM to see if it has been answered instead of spending time thinking about it here. Make sense?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-06-24T20:02:41.620Z
Comments.Text: Is this not yours? https://chat.civicrm.org/civicrm/pl/r6616hqjzp8mzn9t35mpjea65c
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-06-25T08:41:30.487Z
Comments.Text: My bad. Thanks.
Comments.UserDisplayName: darkmode
Tags: <formbuilder>
Title: Form Builder: How to capture autocomplete field change/select event
ThreadText: # Form Builder: How to capture autocomplete field change/select event
  
  (Asked by: username_0 on 2024-06-21)
  
  Is it possible to capture (like in javascript) autocomplete field change/select event in Form Builder public url form page. The scenario is we want to get data to populate another field that is dependent of another field.
  Example:
  
  Car Models: has options to select
  
  Car Model Colors: no options yet, is dependent of the first field to fetch what colors are available.
  
  **Tags:** formbuilder
  
  > **Comments:**
  > **username_1**: This has also been asked (and answered) in MatterMost - pls link to the thread  
  > **username_0**: @username_1 Thanks for the feedback. Are there key words you suggest I search in the community chat to find them.  
  > **username_1**: A bit of misunderstanding perhaps. I am flagging that you (I assume) also asked this question in MM and it would help to acknowledge that so folk can easily jump to MM to see if it has been answered instead of spending time thinking about it here. Make sense?  
  > **username_1**: Is this not yours? https://chat.civicrm.org/civicrm/pl/r6616hqjzp8mzn9t35mpjea65c  
  > **username_0**: My bad. Thanks.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-06-21. Score: 0 | Accepted answer
  
  Yes, you can embed JS using below hooks
  
  <https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterAngular/>
  
  <https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_coreResourceList/>
  
  > **Comments:**
  > **username_0**: Hi again. Going back into as it seems alterAngular is more efficient. But I am stuck in how to embed a js file or scipt into alterAngular. If you have any suggestions or a reading into suggestion, please let me know. Thank you  
  
  ---
  
  