<# // Normalize the value so we have an array. if ( '' !== data.value && 'string' === typeof data.value ) { data.value = JSON.parse( data.value ); // Older versions might be double encoded. if ( 'string' === typeof data.value ) { data.value = JSON.parse( data.value ); } } else if ( '' === data.value ) { data.value = []; } if ( 1 === data.value.length ) { var selectedText = FLBuilderStrings.photoSelectedNum.replace( '%d', 1 ); } else { var selectedText = FLBuilderStrings.photoSelectedNum.replace( '%d', data.value.length ); } var encodedValue = '' !== data.value && data.value.length ? JSON.stringify( data.value ) : ''; #>