Jump to content

Recommended Posts

Posted

Hello,

how can i set autocomplete field value from api. 

i have try with 

$page = wire('pages')->get(1);
$page->of(false);
$page->autocompleteField = 7111;
$page->save();
$page->of(true);

but doesn't work.

thank you. 

Posted

Because an autocomplete inputfield is connected to a page field, you are dealing with an array, so try this:

$page->autocompleteField->add(7111);
Posted

hello adrian thank you for your response 

but it doesnt work ..... :( 

let me explain, in frondend i can set and save the field,

I have a module that runs in backend and it neads to save that field from a form. 

i have try everything i found in the forum but nothing worked.

thank you

.....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...