Support

Account

Home › Forums › General Issues › Creating a unique ID in text field only once › Reply To: Creating a unique ID in text field only once

  • You can wrap the entire inner function in an if statement to avoid running any code if the field value is not empty.

    
    if ( empty( $value ) ) :
        // contents of {yl_create_unique_id_acf_field} function.
    endif;