We’re developing a screen that makes use of a formlist, however we’re struggling a bit with getting a default to work. Is it a known limitation of the formlist that these do not work or are we simply doing something wrong?
When looking in the Dev tools at the Network calls I do not see a default being called. The default is really straightforward and should always fill in a value, its something like this
thanks for the confirmation that a default is currently not supported in the formlist.
For anyone stumbling upon this question in the future. We’ve managed to get a DYI default working by combining a handler and change detection.
Since a formlist directly saves it changes, you can write a handler that mutates the data (like you’d would have written a default). You then only need to add change detection to this table to retrieve this modified data.
Defaults in the formlist have not yet been implemented. If you feel this feature needs a higher priority then feel free to create an idea in the ideas section.
thanks for the confirmation that a default is currently not supported in the formlist.
For anyone stumbling upon this question in the future. We’ve managed to get a DYI default working by combining a handler and change detection.
Since a formlist directly saves it changes, you can write a handler that mutates the data (like you’d would have written a default). You then only need to add change detection to this table to retrieve this modified data.
@Erwin Ekkel I am not able to change the answer to this question myself, but if you’re able to maybe it would be better to set my reply as the answer since it offers a workaround.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.