Skip to main content
Answer

Do defaults work on Formlist?

  • September 28, 2023
  • 3 replies
  • 90 views

Forum|alt.badge.img+5

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

select @date_column = getutcdate()

Would love some help 😁

Best answer by HarryA

Hi @Erwin Ekkel ,

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. 

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+17
  • Moderator
  • October 26, 2023

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. 


Forum|alt.badge.img+5
  • Author
  • Captain
  • Answer
  • October 26, 2023

Hi @Erwin Ekkel ,

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. 


Forum|alt.badge.img+5
  • Author
  • Captain
  • October 26, 2023

@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.