using the displayElement function in a pageworks page.

Question:

I created a page that show multiple columns of values from a table. In the right most column, I am rendering the "status" dropown which has three choices "Open" "Closed" and "Not Billable"

The form and the correct elements display perfectly.

There is a save button at the bottom.

When I hit save, however, I get:

Error: the data you submitted could not be saved in the database.

Question: Is the save button at the bottom able to update multiple elements with the same element ID but different record IDs at the same time? If so, any idea what might be the cause of this error? Permission?

Cheers!

Comments

displayElement

If it is a feature issue ... I can see how it would be easy to upgrade he save feature to save all data.

Probably a security token issue?

Hello, that error usually happens because there's a firewall or something else blocking the validation of the security token or the referrer or something like that. If you turn the security token check off, in the Formulize module preferences, you could see if that works.

The actual code that generates that is in the include/readelements.php file, near the top, where it does a permission check. It could simply be that the correct permissions have not been applied to the correct groups, although usually that should mean you won't even be able to access the form itself...although there are overrides in XOOPS/ImpresCMS for the webmasters group that don't always work right because depending how you access the permissions, the overrides do or don't kick in.

So make sure specific permissions have been applied to groups, including the webmasters group, and if that doesn't do it, then check if it works with the module preferences set to security token off.

I hope this helps,

--Julian