Multiple entity: How to set a default value

  • Asked
  • Active
  • Viewed 3380 times
0

Dear OFT,

How can I set a default value (predefined) in an attribute in a multiple entity? It is a code attribute (i.e. I1=2%). I tried by using both options, the code name and the label in the default value panel (by inserting them in the constant value field) without succeeding.

What I want is from the code list, by default, the most probable value to be shown in the form, and the user to be however able to choose another value afterwards, if needed.

Thank you,

itzam

0

Accepted answer

Dear Itzam,
There shouldn't be any problems to define a default value for an attribute inside a multiple entity.
The default value will be applied as soon as the entity is created, for example when you add a row to a table.
The correct way to do it is to define the default value as a costant value (without quotes) when the value is not generated from an expression, otherwise define it in the expression field.
We will contact you to your private email so you can share with us you survey if you want.
Many thanks,
Open Foris Team

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.