Dear William,
Its very hard to give you a final solution with the information I have. Let me start by asking why you are using gravity forms in there? I assume you are trying to do something that cred doesn't support. Can you explain a bit further?
Thanks,
Caridad