Jump to content

Page Field autosave strategies and dependencies


Kiwi Chris
 Share

Recommended Posts

What options are there to autosave individual page fields both in normal pages and repeaters?

I see there's a page Auto Save in pro dev tools, but I'm not sure if this is what I need?

There's also a commercial module by Kongondo - dynamic selects, but that requires creating a new field of type dynamic select, rather than existing fields, and I'm not sure whether it allows autocomplete rather than dropdowns, so it's not ideal.

Mainly my use case is to handle dependent page fields, where one page field depends on the value of another one. 

I'm aware of the ability to create selectors that refer to other fields on a page, but this doesn't work as required in all scenarios.

I know the API allows saving individual fields and can do so silently if necessary.

Having the ability to specify individual page fields that should autosave via ajax when they're updated would be extremely helpful.

Where this would be particularly useful would be with page Autocomplete input fields, as I've worked out how to hook input to pass the calling page to the hook, for custom selectors, but this only works with current values already saved to the page, so being able to combine this with the ability to autosave specified page fields would help with complex dependencies.

For some fields this functionality might be unnecessary or undesirable, so being able to configure it on a per field with per template override as with other field properties would be ideal.

Has anyone implemented anything like this, or does the pro page Autosave module do this?

Link to comment
Share on other sites

On 12/18/2024 at 1:45 AM, Kiwi Chris said:

I know the API allows saving individual fields and can do so silently if necessary.

Having the ability to specify individual page fields that should autosave via ajax when they're updated would be extremely helpful.

Question is: will the Javascript be aware of the changes on the field? I bet no, and that it will need to be reloaded.

On 12/18/2024 at 1:45 AM, Kiwi Chris said:

I'm aware of the ability to create selectors that refer to other fields on a page, but this doesn't work as required in all scenarios.

I confirm that, I had to remove these conditions on a page because it was totally bugged (3 or 4 fields with dependencies), reported the issue but nothing has been done. 😐

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

×
×
  • Create New...