Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set the default value in modal bootstrap 3 #231

Open
marcipriano opened this issue Jun 15, 2021 · 0 comments
Open

set the default value in modal bootstrap 3 #231

marcipriano opened this issue Jun 15, 2021 · 0 comments

Comments

@marcipriano
Copy link

I'm having trouble setting the default value in modal bootstrap 3. if you have out of modal it works perfectly. before I used a previous version that worked. but in this version the selectionRequired was not working. when updating to the latest version this problem appeared.

when opening the modal I set a default value in flexdatalist. even if I pass the setting inside the modal's opening event it doesn't work.

the fetching data event is triggered. but the default value is not set. it is not the problem of the type because even setting the manual value the value is not assigned to the field.

version: 2.3.0

follow my configuration

$('#corretorAtdm').flexdatalist({
url: "{!! route('admin.access.users.get-users') !!}",
cache: false,
minLength: 3,
params: {andCpf: true},
textProperty: '{name}',
valueProperty: 'id',
focusFirstResult: true,
selectionRequired: true,
searchContain: true,
visibleProperties: ["name", "cpf", "name_tipo"],
searchIn: ["name", "cpf"],
noResultsText: '"Sem resultado para {keyword}".'
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant