ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Can't skip missing fields in save data action

healyhatman 18 Oct, 2018
I want to have a save data action where only the fields that have been filled in will be updated. So naturally in the override I put
field:{data:field}/-
However on one website I just get "Error:0" (super unhelpful). On another site in the debug under the info section for the save data action I get "field has been skipped" but then it goes ahead and updates the value with an empty string anyway.

So what I've had to resort to doing is
field:{data:field/(var:read_data#.model.field)}
GreyHead 18 Oct, 2018
Hi healyhatman,

It's a workaround but you could read the saved data record, update the changed fields and then re-save it. That way you do have full control.

Bob
healyhatman 18 Oct, 2018
Yep that's what I'm doing, at the bottom of my post - read the data, and use the existing data as the default value if the field's form data is empty.
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com