Fill form before trying to build data array