Answers.Body: <p>Yes possible to do it using build form hook, but you will still need to play around with the label of the field because its a checkbox and is written differently. So using JS you will need to replace the section with correct format.</p>
  <pre><code>/**
   * Implements hook_civicrm_buildForm().
   *
   * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm
   */
  function cisitepasswords_civicrm_buildForm($formName, &amp;$form) {
    if ($formName == 'CRM_Event_Form_ManageEvent_EventInfo') {
      if ($form-&gt;elementExists('is_public')) {
        $form-&gt;removeElement('is_public');
        $form-&gt;addYesNo('is_public', ts('Public Event')); 
      }
    }
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-04T16:42:33.290Z
Answers.LastActivityDate: 2024-04-04T16:42:33.290Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>You could use the Word Replacement feature with no code to change the string 'Public Event' to something else.</p>
  <p>Here's a link to the documentation: <a href="https://docs.civicrm.org/user/en/latest/initial-set-up/customizing-the-user-interface/#using-word-replacement-to-change-terminology" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/initial-set-up/customizing-the-user-interface/#using-word-replacement-to-change-terminology</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-04T18:17:37.640Z
Answers.Text: This seems like it would be a much simpler solution
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-04T18:26:25.267Z
Answers.Text: @Coleman could you give me an example?
Answers.UserDisplayName: marcelo2605
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-04T23:00:56.373Z
Answers.Text: https://docs.civicrm.org/user/en/latest/initial-set-up/customizing-the-user-interface/#using-word-replacement-to-change-terminology
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-04T16:49:24.657Z
Answers.LastActivityDate: 2024-04-04T23:01:15.613Z
Answers.LastEditDate: 2024-04-04T23:01:15.613Z
Answers.UserDisplayName: Coleman
Body: <p>On the event form, there is a checkbox called Public Event. I would like to change to something else. But it seems there is no hook to do this:</p>
  <pre><code>$this-&gt;addElement('checkbox', 'is_public', ts('Public Event')); 
  </code></pre>
  <p>Could anyone confirm if it's possible without use JavaScript?</p>
  
Tags: <wordpress><translation>
Title: Change checkbox label in event form
ThreadText: # Change checkbox label in event form
  
  (Asked by: username_0 on 2024-04-04)
  
  On the event form, there is a checkbox called Public Event. I would like to change to something else. But it seems there is no hook to do this:
  $this->addElement('checkbox', 'is_public', ts('Public Event')); 
  
  Could anyone confirm if it's possible without use JavaScript?
  
  **Tags:** wordpress, translation
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2024-04-04. Score: 0 | Accepted answer
  
  Yes possible to do it using build form hook, but you will still need to play around with the label of the field because its a checkbox and is written differently. So using JS you will need to replace the section with correct format.
  /**
   * Implements hook_civicrm_buildForm().
   *
   * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm
   */
  function cisitepasswords_civicrm_buildForm($formName, &$form) {
    if ($formName == 'CRM_Event_Form_ManageEvent_EventInfo') {
      if ($form->elementExists('is_public')) {
        $form->removeElement('is_public');
        $form->addYesNo('is_public', ts('Public Event')); 
      }
    }
  }
  
  
  ---
  
  ### Answer by username_2 on 2024-04-04. Score: 3
  
  You could use the Word Replacement feature with no code to change the string 'Public Event' to something else.
  
  Here's a link to the documentation: <https://docs.civicrm.org/user/en/latest/initial-set-up/customizing-the-user-interface/#using-word-replacement-to-change-terminology>
  
  > **Comments:**
  > **username_3**: This seems like it would be a much simpler solution  
  > **username_0**: @username_2 could you give me an example?  
  > **username_2**: https://docs.civicrm.org/user/en/latest/initial-set-up/customizing-the-user-interface/#using-word-replacement-to-change-terminology  
  
  ---
  
  