Support

Account

Home Forums General Issues Load pre-defined values for fields? Reply To: Load pre-defined values for fields?

  • Hi @herrfischer

    Hmm.. I suppose you could do this by adding some custom JS to the page.

    Basically you’ll save some site meta information containing these default presets (in wp_options).. perhaps that’s something you should do on activation of the theme but I leave that up to you.

    Then, when a person clicks one preset button you run some javascript that does an ajax call and fetches the preset information (get_option()). Then you’ll simply input those values into the input fields within ACF using javascript..
    jQuery('#inputfield').val(ajaxresponse.farbeA);