Setting a default value for a single document suggestion widget

Hello,

I am trying set a default value within a form create layout for a single document suggestion widget.

I have tried the following within the custom properties to no avail:

defaultValue     #{currentDocument.customSchema.customDocProperty}

…where customDocProperty is of type Document.

Any suggestions on how to set a default value for a single document suggestion widget?

Thanks!

0 votes

2 answers

1331 views

ANSWER



Hello,

You have to use an automation chain with the operation Document.SetProperty linked to the event handler “Empty Document Created”. Take care not to set save=true on the Document.SetProperty as the document is not committed to the database at that moment.

Regards

1 votes



Hi Gregory, Thank you for your reply. Is there any way to get the parent document from the empty document created?
11/04/2019


1 votes



Awesome, thanks a ton Gregory! Appreciate the support & quick response!
11/04/2019