Developer forum

Forum » CMS - Standard features » Item relation list - Default values

Item relation list - Default values

Anders Engelbøl
Reply

I have a scenario, where I need to include an Item relation list, with a default value of at least one item with standard settings. Though, I cannot seem to figure out the format of the Data default value, correlating with the field options from my selected item type.

More specific, my scenario is a follows. I need:

- An item relation list where at least one item must always be present

- As such the validation rules has been set to a min. quantity of 1, which is fine when i try to save my item, but I would like it to be set with a default value when I create my main item, in which the item relation list is created.

- We've tested the default value with random numbers, which creates 'a result', but nowhere near the desired outcome. 

- The official documentation does not go into details on the subject, or an I wrong perhaps?
https://doc.dynamicweb.com/documentation-9/content/items/item-fields/item-relation-list

dwcasedefaultitemrelationitem.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

You cannot define default values for item relation lists...

Votes for this answer: 1

 

You must be logged in to post in the forum