Jump to content

[SOLVED] How to set access toggles of a field via API?


dotnetic
 Share

Recommended Posts

How can I set the access toggles for a field I create via API?

image.thumb.png.7e935e56b5e36c84c4c0556e2548d11e.png

$f = new Field(); // create new field object
$f->type = $this->modules->get("FieldtypeFloat"); // get a field type
$f->name = 'price';
$f->precision = 2;
$f->label = 'Price of the product';

Maybe @ryan can help?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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