matthew.newby-crl
-
5/6/2013 10:27:28 AM
Document Types and customer-facing forms?
I'm a developer starting to use Kentico for the first time, so yes, I AM new here! :-) I need to create a number of customer-facing forms which, while targeted at different segments of our customer base, will share a lot of common fields. I've been experimenting with creating document types to minimize the number of fields I need to create, but I'm having trouble finding out how to use those document types when creating customer-facing forms. I'm sure I'm missing something basic, but I'm also having trouble finding documentation/articles that talk about doing this. There's plenty on document types and a fair amount on bizforms, but I haven't found what I'm looking for yet. I'd appreciate any guidance you could give me to point me at existing documentation.
Example:
Customer Contact document type contains contact name, email, phone, alternate contact name, email, phone, and company address (street address 1/2, city, state/province, zip/postal code).
Shipping document type inherits Customer Contact fields, adds a checkbox to indicate a different shipping address, then a category containing shipping address fields similar to the company address fields. Side issue: I tried setting the visibility of the category based on the value of the checkbox (if it's not checked, don't show the fields), but that doesn't seem to behave like I wanted on the form -- I wanted to click the checkbox and have the fields in this address block appear. Instead, it looks like I have to check the box in CMS Desk, save the document, then when I open it again, at that point the address fields show up. It's not dynamic when the form is being filled out initially...
Billing document type inherits Shipping fields (which also gets the Customer Contact fields), adds a checkbox to indicate a different billing address, and a category containing all the billing address fields.
These three document types are then the general document types that can be used as the basis for the various forms I need to create. So, a request for information might be a new document type that inherits the Shipping document type so that we've got fields for the customer contact, as well as potentially a different shipping address to send literature to. On the other hand, a product order document type would be based on the Billing document type, since we may need to send product to one location, while sending the billing invoice to another location.
When I create the form for the end document types, I can see those forms via the CMS Desk, but I haven't been able to figure out how to add them as customer-facing forms that the public can see. If I go to add a Form using the CMS Desk interface, the document type forms are not available to be picked. On the other hand, if I attempt to add a new form there, I see a similar screen for adding fields, but I can't see where to pick the document type fields that I've already created.
What am I missing?
-matt
|