• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

FixMe Front end addition not saving label for dropdown element

J! 5.1.4
F 4.3.1
PHP 8.2.23

I have a simple dropdown element in a repeat group which works perfectly with the dropdown values/labels set up in the backend. I have Front End Additions Enable=Yes, Only add label=Yes and Save new additions=Yes. When I try to use this on the front end, I can enter a label/value in the option and click the Add, click Save, but the label does not appear on the Detail page. Nor does it appear in any future dropdown options as it should.

I'm sure this has worked correctly in the past. Is this a known problem, as I couldn't find any recent forum posts? Is it due to repeat groups perhaps? Or am I doing something really stupid? (It has been known.)
 
Obvioulsy a repeat group issue.

It's working in non-repeat groups.

It's storing the new labels in the record for the repeat elements where they were added (and also showing in details view on my site).
But it doesn't store them for further use.
 
OK, thanks @troester
I've used a custom details template so that's why mine doesn't show. My template uses the specific element name so I guess if it's not saving it properly, that's why.
It's a nice-to-have but not a deal breaker! I can always add more dropdown options in the back end.
 
Hi @troester. I've just tried using front end addition for a dropdown element in a non-repeating group and it's not working properly here either.
Front end additions Enable = Yes, Only add label = No, Save new additions = Yes
Result: new addition correctly appears in front end details for that record AND in database column. But does not appear in dropdown for any other records and does not appear in dropdown values/labels in back end.
J! 5.2.1
F 4.4.1
Or is it just me?!
 
Hi @troester
I've tested this again since Fabrik 4.5.1 and it's half-working!
With Front end additions enabled, Only add label = Yes, and Save new additions = Yes, any new additions on the front end are correctly saved in the record AND appear in the dropdown for any new records.
However, they do not appear in the back end as element sub options. Nor do they appear in the database table _fabrik_elements under the params for that element.
So I can use the new dropdown item... but it was a test item and now I can't get rid of it!
Any ideas?
 
I think there wasn't any change in F4.5.1.

I can't replicate.

With fronend add enabled + 'only add label' = no or yes + 'save new additions' it's saved in the element params and shown in the element
1740596630705.png




But:
If you have tested with "save=no" such a new label will only exist for and in the record it was created.
This label is stored in the database (in your table___element column) and shown when you display this record (list, form, details).
But it's not part of the element settings and won't show up there or in any other record.
To get rid of this label edit the record and select something else.


Edit:
This is about a non-repeat group, I have to test the repeat group...
Maybe in a repeat-group it's acting like a save=no setting.
 
Last edited:
Sorry, I should have mentioned that this latest test was with a non-repeating group too!
It's definitely not showing in the backend or in the database params BUT it IS showing in the dropdown list for any other record - where on earth is that coming from??
Maybe it's just my set up. I'll try it on another site.
(I can't edit the record because I deleted it! :rolleyes:)
 

Members online

No members online now.
Back
Top