Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Manfred Kipfelsberger

    (@manfred-kipfelsberger)

    Hi Michael,

    another one: the addSettingField-function uses the label attribute to list the options for select – fields. How can I then attach a genuine (input field) label to a select field?

    Thx, Manfred

    Plugin Author miunosoft

    (@miunosoft)

    Hi Manfred,

    To create a custom button that does not send the form, you can do something like this.

    array(
        'field_id'      => 'my_custom_button_a',
        'type'          => 'my_custom_button',  // <-- any slug that does not exist as an APF field type
        'title'         => __( 'Custom Button', 'admin-page-framework-demo' ),
        'before_field'  => "<div><a class='button button-primary'>Press Me</a></div>"
    ),

    Hope it helps!

    As for the other question, create a new topic. It helps future visitors find their information. Thank you!

    Thread Starter Manfred Kipfelsberger

    (@manfred-kipfelsberger)

    Thanks for your reply. This solves the issue. I’ll open a new topic for the other question.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to create a button (no submit)’ is closed to new replies.