Support

Account

Home Forums General Issues Custom ACF Field Type – Phone number Reply To: Custom ACF Field Type – Phone number

  • Now I have managed to store the data.
    But now, there is a problem to get the value from the db.

    The saved data looks like:
    a:4:{s:14:"country_prefix";s:2:"43";s:9:"area_code";s:1:"1";s:12:"phone_number";s:6:"666666";s:14:"direct_dialing";s:4:"0111";}

    But, when i debug the $field var at the backend output i only get this data:

    Array
    (
        [seperator] => -
        [country-prefix] => +
        [key] => field_54848f4ff3185
        [label] => test
        [name] => fields[field_54848f4ff3185]
        [_name] => test
        [type] => phonenumber
        [order_no] => 26
        [instructions] => 
        [required] => 0
        [id] => acf-field-test
        [class] => phonenumber
        [conditional_logic] => Array
            (
                [status] => 0
                [rules] => Array
                    (
                        [0] => Array
                            (
                                [field] => field_545fc78e1d45a
                                [operator] => ==
                                [value] => 0
                            )
    
                    )
    
                [allorany] => all
            )
    
        [field_group] => 137
        [value] => 
    )

    The value is missing…
    …also in the frontend