Noahj Champion

Hi!

It just seems that some repeater methods are missing, ie:

Fatal error: Uncaught Error: Call to undefined method Ultimate_Fields\Field\Repeater::___()

I go errors for the following and also searched the code of the Repeater class and it just seems these options are not there, but they are for using them in the UF UI, but not the PHP API.

->set_min()
->set_max()
->set_icon()
->set_edit_mode()
->set_title_template()

However, it looks as maybe it just needs updated because...

->set_min()
->set_max()

Do exist but instead are...

->set_minimum()
->set_maximum()
July 30, 2018 at 12:31
Noahj Champion

Hi.

I figured this out.

From the docs I think it can get a little confusing, but I figured it out.

I have some sample codes I will add/share to help other devs get started.

Related to this issue, I think the main starting point is to note that The Repeater works off of 2 Classes, Field::create() and Repeater_Group::create().

And deciphering which methods went with which classes was the issue, but I've sorted through it all now and all is working well.

Overall I think it is really nice! and Robust.

We can create a very extensive repeater field as a simple object and essentially add it into any other array of fields.

August 17, 2018 at 16:38
Noahj Champion marked the topic as resolved.
Noahj Champion

Though perhaps, the ->set_minimum()->set_maximum() should still be formed to the common method language in other places as ->set_min()->set_max() ?

August 17, 2018 at 16:39

If you have problems setting up Ultimate Fields or the fields are not working as you expected, you can discuss your issue here.

If the issue is specific to a Pro feature, please post in the “Ultimate Fields Pro” forum.

Docs

Have you checked the documentation?

Ultimate Fields is fully documented. Please check the documentation or use the search before posting a new topic.

Read the docs

Demo

Once you are registered, you can request a demo instance, where you can try Ultimate Fields before usage or purchase.

No strings attached.

Request a demo