Hi,
I have a problem that I don’t know how to solve.
When I’m using the api to create a dialog, all the select default values are not displayed:
'dialog': {
'callback_id': 'callback',
'title': 'title',
'icon_url': 'http://www.mattermost.org/wp-content/uploads/2016/04/icon.png',
'elements': [
{
'display_name': 'Task',
'name': 'task',
'default': 'opt1',
'type': 'select',
'options': [{'text': 'Option 1', 'value': 'opt1'}, {'text': 'Option 2', 'value': 'opt2'}],
'optional': False
}
],
'submit_label': 'Submit Test',
'notify_on_cancel': True,
'state': 'state'
}
But on submit, the value default value is correctly in the payload as intended.
Do you have any idea ?