NextGen Knowledge Center

HASAUDIO String Function

Use:Indicates whether an audio recording has been created and saved to a specific note field
Syntax:
{HASAUDIO( «string» )}
Arguments:

«string»
    Character string that represents the name of the note field to be evaluated 
Returns:0 = Specified note field does not contain an audio recording

1 = Specified note field contains an audio recording

Example:

Note field = audio_note which has audio recorded
Numeric data entry field = audio_indicator
Button field = audio_check
Set up an Assign Field Value trigger on the audio_check button field to check the audio_note_field for audio. Display the result in the audio_indicator field using this function:
templatename_.audio_indicator = {HASAUDIO( audio_note )}

Result: 1