CMS Development

MVillarreal43
メンバー

DotSquares Error Code

解決

Hello, 


When attempting to create a new custom object, I receive this error code. Does anyone know how to fix this? 

 

Error Code

Invalid input JSON on line 1, column 1274: Cannot build OptionInput, some of required attributes are not set [value]

0 いいね!
1件の承認済みベストアンサー
Anton
解決策
ソートリーダー | Solutions Partner
ソートリーダー | Solutions Partner

DotSquares Error Code

解決

Hi @MVillarreal43

sounds like your "default"-value is not set.

If you set an option to required:true you need to type in something in "default".

{
"name": "option_1",
"label": "Option 1",
"required": false, <-- if this is set to true
"locked": false,
"display": "select",
"inline_help_text": "",
"help_text": "",
"choices": [
[ "option1", "Option 1" ],
[ "option1", "Option 2" ]
],
"type": "choice",
"placeholder": "",
"default": "option1" <-- this a) can't be empty and b) has to be one of your selectable values
}

Could you please post the affected JSON part for better support?

 

best, 

Anton

 

Anton Bujanowski Signature

元の投稿で解決策を見る

0 いいね!
1件の返信
Anton
解決策
ソートリーダー | Solutions Partner
ソートリーダー | Solutions Partner

DotSquares Error Code

解決

Hi @MVillarreal43

sounds like your "default"-value is not set.

If you set an option to required:true you need to type in something in "default".

{
"name": "option_1",
"label": "Option 1",
"required": false, <-- if this is set to true
"locked": false,
"display": "select",
"inline_help_text": "",
"help_text": "",
"choices": [
[ "option1", "Option 1" ],
[ "option1", "Option 2" ]
],
"type": "choice",
"placeholder": "",
"default": "option1" <-- this a) can't be empty and b) has to be one of your selectable values
}

Could you please post the affected JSON part for better support?

 

best, 

Anton

 

Anton Bujanowski Signature
0 いいね!