• Resolved yousufkh

    (@yousufkh)


    Hi

    How i can set default value for a text field, i configured to set placeholder though now need to set default value for text field. Please help!

    array(
    
                "name" => "adverts_person",
    
                "type" => "adverts_field_text",
    
                "order" => 10,
    
                "label" => __( "Contact Person", "adverts" ),
    
                "is_required" => true,
    
    			"placeholder" => "SBACC",
    
    			"set_value" => "SBACCCCC",
    
                "validator" => array( 
    
                    array( "name" => "is_required"),
    
                )

    https://ww.wp.xz.cn/plugins/wpadverts/

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, right now, without modifying original source code you can only set placeholder, but not the default value i am afraid.

Viewing 1 replies (of 1 total)

The topic ‘Default Value for Text Field’ is closed to new replies.