Default field values for a new collection entry

Hi,

I did look at some of the postings in the forum but could not quite figure it out.

Essentially, I am trying to set default values for specific fields when a new notification is created (screenshot 1)

screenshot 1:

The fields to be entered by the user manually (screenshot 2)

screenshot 2:

The setup for the three field values to be set automatically (screenshot 3 & 4)

screenshot 3 & 4:



)

Since I could not figure out how to save a default unread notification icon for a new notification entry, I created a separate Notification Types collection which looks the following (screenshot 5)

screenshot 5:

I was hoping to be able to access any field values in that collection but Notification Types does not appear at all when trying to set automatic values (screenshot 6)

screenshot 6:

Any help is greatly appreciated.

Thanks in advance.

Kâmi

Hey @Kami,

Saving the boolean default could be done easily from the (Automatic Fields) section in the form, but regarding the image, there’s no direct way to set the default value for it in the form unless you create a custom setup (custom form) or if you connect it to a specific data source that has this default image saved in an image property in a different database collection.

Thanks @Ali-Bazzi,

if you connect it to a specific data source that has this default image saved in an image property in a different database collection.

It seems to me that is what I attempted (see screenshot 5 and screenshot 6 in my previous post).

Do you know why I am not able to access the Notification Types collection notification unread icon field and set Notifications collection unread notification icon field to its value by default?


I tried to refer to the correct field in the Nofication Types collection in my Notifications collection (screenshot 7)

screenshot 7:

Unfortunately, I am unable to set the default unread notification icon (image) value automatically when a new notification is created (screenshot 8)

screenshot 8:

Thanks.

K.

Hey @Kami,

You’re not able to access the image default value because this image property (Unread Notification Type ICON) is in the (Notifications Collection) itself that you are trying to create. So basically, you cannot set an image default value from a record of a database collection that you’re creating in a form at the same time.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.