Apps Ballance Chat Click Code Cog_Wheels Compose_email Conference Contacts Earth Edit_File_1_ Email Email_2 File Folder_2 Gift Group Group_2 Help ID ID_2 Key Keys Laptop_Store Link Lock Log_Out Map Marketing Mobile_UI Navigation Partnership Profile Safe_2 Search_User Secure_Files Settings Share Shield Shield_2 Shopping_Cart Support_Male Trash Type_pin User_female User_male logo copy

Audio Field Type

Iain Poulson avatar
Iain Poulson Last updated on March 16, 2021

The Audio Field Type is available to collect audio files from your users upon registration. With this custom field, you can control the types of files submitted, control the visibility of the audio files, and whether or not users can replace or edit the information submitted after registration. 

How to Add The Audio Field Type

Adding this field type is simple. It functions just like any other custom fields that you want to add to your registration form: 

  1. Navigate to USERS > CUSTOM FIELDS
  2. From here, you can choose to add another field group by clicking “Add New Field Group” or customize an existing field group by clicking “Customize Fields” next to the name of the field group you want to update
  3. Click on “Add new custom field” to get to the custom fields popup.NOTE: In case you already have an audio field type selected, just click on “Edit Field” to update that existing field.
  4. On the popup, click on the Advanced Fields tab
  5. Add a Field name
  6. Click on Audio
  7. Click “Create Custom Field” to create your new field type

Once your new field is created, you can update the settings accordingly. 

General

Under the “General” tab, you will find the following settings: 

  • Field title – the name of the repeater field that will be displayed on your registration form. 
  • Field description – this optional field is the text that will appear as a description within the forms
  • Unique meta key – this field is important to specify or remember since this will be the tag of the data or information about your users that will be stored on your databaseNOTE: The key must be unique for each field and written in lowercase with an underscore (_) separating the word, e.g., country_list or job_title. Errors might result in adding the information on the database if this field is not properly formatted. 
  • Placeholder – this will be the placeholder text that will be displayed on the field in the registration form. You can leave this empty if it’s not needed. 

It’s good practice to pay attention to these fields since these will be the basic settings needed for the field.

Validation

The “Validation” tab provides settings for requiring user inputs on the registration form. 

  • Set as required – enable this option to ensure that the field is filled out before the form can be submitted. 
  • Maximum file size – enter the maximum file size that users can upload through this field. The amount must be in bytes. If you want to number in kilobytes, take note of the conversion factor. NOTE: Unless you otherwise indicate on this field, the maximum upload file size of your WordPress install will take effect. 
  • Allowed File Types – enter the file types that you would like to accept through this field. Input must be comma-separated. Examples: mp3,m4a,ogg,wav

Privacy

The “Privacy” tab provides the settings to control the visibility of the information on the user’s profile section.

  • Profile visibility – this setting sets the visibility of this field on the user’s profile pages. 

Permissions

The “Permissions” tab provides the settings to control what the users can update or edit once the registration form has been submitted. 

  • Profile editing – this setting sets who can see and edit this field after submission. Setting this to “Hidden” will not allow editing on the front-end profile page. 
  • Set as read-only – enable this option to prevent users from editing this field on their profile page. If the profile editing is set to publicly editable, the field will still be visible within the account page but will not be customizable

Adding to the Registration Forms

Once you’ve set and created the custom audio field, it’s time to add this custom field to the registration form. Here’s how you can do that: 

  1. Navigate to USERS > REGISTRATION FORMS
  2. Click “Add New Form” in case you want to create a new form with this field, otherwise, click “Customize Form” to customize the existing form.
  3. Drag and Drop the custom field that you created under the “Available Fields” from the right column to the “Form Fields” on the left. You can rearrange the fields as you see fit.

The changes are automatically saved after you make them and will take effect immediately. 

Previewing the Registration Form

Once you’ve updated the registration form and added the repeater field, since the changes are automatically updated, you can preview if this works by logging out and replicating the registration process.

To update your registration, profile, and account pages, add shortcodes including parameters, read more on this documentation page. 

The Profile and Account Page

Depending on the setting that you set under the “Privacy” and “Permissions” tab of the custom field, the information that was submitted can be seen on the user’s profile page.

Editing the Audio Field from the Profile Page

Once the user has successfully registered, and if the “Privacy” and “Permissions” settings that you set for this field, the user can easily update and edit the information from their account or profile page. 

From the Profile page, click on the “Edit account” link next to the username to be directed to the Account page where the users can update the existing information on the fields. 

Need more help?

If you still didn't find an answer you can always contact us

Submit a ticket