You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess I found a non-covered use-case, I'm working with a update form, where the stored value could be 2, and I'm not able to save the label (text), with a JSON like this comming from the server, and I want to retrive the label (text) from there, right after the page loads:
if the page loads and you got the selected value, you should also get the label from this selected value.
there is no need for an initial ajax, you need to/have to do it on pageload yourself.
if you dont have that label on pageload, you need to make an ajax before the selectpicker is initialized, this depends on your code or add it where you gather the selected id/form data.
this is a searchajax and not a "get me a label by id ajax".
this is why the use-case is just wrong.
Hi,
I guess I found a non-covered use-case, I'm working with a update form, where the stored value could be
2
, and I'm not able to save thelabel
(text), with a JSON like this comming from the server, and I want to retrive thelabel
(text) from there, right after the page loads:Current behaviour
Expected behaviour would be:
label
), do an ajax to retrieve some options, so you get thelabel
(text) of the selected option.thanks in advance
The text was updated successfully, but these errors were encountered: