Recent Topics

Default value for input admin



  • Hello,
    i want to know how can i add default value from input
    Example i have input color

                [
                    'name' => 'menu_theme_color',
                    'title' => 'Couleur du menu',
                    'type' => 'color',
                    'channel_based' => true,
                    'locale_based' => false
                ],
    

    How to add default value color ?



  • Hi @raouf415,

    You need to pass the default_value key,

    [
            'name' => 'menu_theme_color',
            'title' => 'Couleur du menu',
            'type' => 'color',
            'channel_based' => true,
            'locale_based' => false,
            'default_value' => 'default value',
    ],
    

Log in to reply