Jump to content

Recommended Posts

We have contracts that our customers have to sign and mail back to us along with W9's. Depending on the type of customer they get different contracts, and some do not have to fill out any W-9's. If a form gets updated then all the customers that have been assigned to that form should have to fill out the contract again saving all the previous information for tracking reasons.

 

So basically I cannot think of the best way to design this application, here is a quick idea that I was thinking about which could take care of the version and everything else.

 

Customer_Form

CustomerForm_ID

CustomerForm_CustomerID

CustomerForm_FormID

   

Customer_FormVersion

CustomerFormVersion_ID

CustomerFormVersion_CustomerID (I know this is not needed)

CustomerFormVersion_FormID (I know this is not needed)

CustomerFormVersion_CustomerFormID

CustomerFormVersion_DateRequested

CustomerFormVersion_DateCompleted

CustomerFormVersion_CompletedByMemberID

 

Form

Form_ID

Form_Name

 

Form_Version

FormVersion_ID

FormVersion_FormID

FormVersion_VersionNumber

FormVersion_DatePublished

 

Now the problem is that each Form/Version has different number of fields and different layouts. I could create another table with the FormVersionFields that specify the field names to be filled in but then I am not sure how to build the form to be displayed without just listing the items. Does anyone have any suggestions on the best way to handle this type of situation?

Link to comment
https://forums.phpfreaks.com/topic/94337-automatic-form-generation/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.