Publisher is EE6 compatible, but it does not support the Fluid field. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Default values in Bloq fields (input and select)

Status Resolved
Add-on / Version Bloqs 2.10.4
Severity
EE Version 6.3.4

Werner Gusset

Jul 28, 2022

I have a Bloq with 2 fields as integer for Bootstrap column values. They are requested. If I select that Bloq it inserts the two fields with value “0”. And the Bloq can be saved that way. The result at the end are no Bootstrap columns on our page.
Expected behavior is empty fields, an error message if nothing is entered. Is this a wrong expectation?
I can switch to a field with “All” instead of “Integer” and it leaves the input field for the column value empty. That’s okay. But nevertheless, an Integer field would be the better choice.

It would be interesting to be able to define default values for such input fields, BTW.

The select fields do behave differently lately. I have a select field with two option. Before, the first option was selected when the Bloq was inserted to an entry, practically as a default value. Now we see “Choose wisely” and have to select one of the options. Is this a Bloq thing or is it EE who does it different as before? My client expect to see a default value, the one I put to the first option place.

#1

BoldMinded (Brian)

Jul 28, 2022

The select fields do behave differently lately. I have a select field with two option. Before, the first option was selected when the Bloq was inserted to an entry, practically as a default value. Now we see “Choose wisely” and have to select one of the options

This is a change in EE core. There is a Github Issue for it in the EE repo.

Bloqs data is all saved in the same database column, which is a LONGTEXT. I can’t change one atom/field to be integer, otherwise it would change all fields to integers.

#2

Werner Gusset

Jul 29, 2022

Okay. Thank you.

Login to reply