FwForm date field is not getting prefilled with initial values/ default values

Hi Team,

I am using FwForm Form (fw-form) | Crayons

with this form I am using a DATE field, I am not able to prefill the field value, my code is
{
id: “started_at”,
name: “started_at”,
label: “Started At”,
type: “DATE”,
value:“2021-12-02”,
position: 3,
placeholder: “Enter Started At”,
choices: ,
},

Kindly suggest to me the solution to achieve this.

Thanks & regards,
Gopi

Hi Team,

Are there any updates on this?

Thanks & regards,
Gopi

Hi @Gopi ,

Thanks for your patience and apologies for the delayed response.

Based on information provided I understand you are creating dynamic form using crayons and want to pre-fill the date information. The form data JSON expects value instead of placeholder for pre-filling data in below format

	{
	  id: 'f319f86f-1b6a-49cb-b4b6-cf487be94595',
	  name: 'date_of_birth',
	  label: 'Date Of Birth',
	  type: 'DATE',
	  position: 11,
	  required: true,
	  Value: '03/01/2030',
	  hint: 'Please enter your date of birth',
	  choices: [],
	}

Kindly remove placeholder and set only value to reflect the changes.

Regards,
Thakur

Hi @Thakur_Ganeshsingh

Thanks for the solution