Set length of dialog field

Hi all,
How can i change the length of a field in dialog?
Thanks
Maysaa

@MaysaaSafadi,

You will need to pass the length parameter to the field.

e.g.

{
	"label": __("Test"),
	"fieldname": "test",
	"fieldtype": "Data",
	"reqd": 1,
	"length": 10
}

I solved it
Thanks @makarand_b