Color custom field with default value

Support General Color custom field with default value

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3927
    mossmanmossman
    Participant

    Hi,

    How I set a color custom field with a custom default value (color)?

    Thanks

    #3929
    Anh TranAnh Tran
    Keymaster

    Please use 'std' => '#aabbcc' in your field. std is used to set the default value of the field.

    #3938
    mossmanmossman
    Participant

    Thanks for the reply.

    I used that you say 'std' => '#000000' but the result is strange:

    - In the first test I used 'std' => '#ff0000' on first color custom field but nothing happens.

    - In the second test I created new color custom field with 'std' => '#aabbcc' and I put this field above other color custom fields (each field with 'std' => '#000000') and the result is that all custom fields take the 'std' of the new custom field above.

    - In the third test I created new color custom field with 'std' => '#aabbcc' and I put this field above other color custom fields (each field with 'std' => '#000000') and the result is that all custom fields take the 'std' of the new custom field above.

    Thanks

    #3939
    mossmanmossman
    Participant

    All solved. Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Color custom field with default value’ is closed to new replies.