EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 07:34:28 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
form.js load null value
Pages: [
1
]
« previous
next »
Print
Author
Topic: form.js load null value (Read 10656 times)
happyraing
Newbie
Posts: 2
form.js load null value
«
on:
May 05, 2020, 12:19:41 AM »
the database fileds value is null
then call form('load', row);
when row.comboboxval=null
combobox will throw an error : Cannot read property 'split' of null
the combobox multiple=true
«
Last Edit: May 05, 2020, 12:32:46 AM by happyraing
»
Logged
jarry
Administrator
Hero Member
Posts: 2264
Re: form.js load null value
«
Reply #1 on:
May 06, 2020, 11:46:37 PM »
A multiple combobox requires an array as its field value. Use this code to avoid this issue.
Code:
row.comboboxval = row.comboboxval || [];
$(...).form('load', row);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...