Snippet question

This topic contains 2 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #753

    Joy
    Buyer
    Post count: 1076

    Hi, I had this snippet activated for admin only fields. Do I still need to use it?

    add_filter( 'uwp_account_include_admin_use_only_fields', '__return_true' );

    I think this was added in the update. Now I am using this snippet:

    
    
    add_filter('uwp_form_input_field_text', 'custom_uwp_form_input_field_text', 10, 3);
    function custom_uwp_form_input_field_text($field, $value, $form_type) {
        if ($form_type == 'account') {
            if (
                $field->htmlvar_name == 'uwp_account_first_name'
                || $field->htmlvar_name == 'uwp_account_last_name'
                || $field->htmlvar_name == 'uwp_account_username'
            ) {
                $field->for_admin_use = '1';
            }
        }
        return $field;
    }

    Thank you.

    #758

    Guust
    Moderator
    Post count: 29970

    Try turning it off and see what happens? Then you will know.
    I got Giri to look at your question too after the weekend.

    Thanks

    #759

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You don’t need the snippet, there is a settting in the form builder fields now.

    Thanks,

    Stiofan

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket