No, web to case can't work with a lookup field. This is because lookup fields have to be filled with data, but as an unauthenticated user a Web To Case user can't see any data (among other things).
The only lookup fields that will work with W2C are Contact and Account, and then only implicitly -- W2C will try to fill them automatically by looking for a match on the submitted email address.
There have been some advancements (Communities) to Salesforce since this post, but this is possible with certain standard objects. When you create a community, you can create a Site Guest User specific to that community. That user will not be in the same list as regular users.
All Communities > Builder > 'Upper left icon' > Administation > Pages > Advanced Customizations/Go to Force.com > Public Access Settings
At the same time, you should create a Public Group for the Guest User to join. You can then share internal data (Sharing Settings) with the public group and expose the lookup field data. You can even put a filter on the data you expose.
Then you create a Global Action for your community where you determine predefined field values and a page layout for the community. In that layout, the lookup field you created can be included.
The Trailblazer/Success pages in Salesforce can give you more detail, but it can now be done.
The only lookup fields that will work with W2C are Contact and Account, and then only implicitly -- W2C will try to fill them automatically by looking for a match on the submitted email address.
Thanks,
Jon
There have been some advancements (Communities) to Salesforce since this post, but this is possible with certain standard objects.
When you create a community, you can create a Site Guest User specific to that community. That user will not be in the same list as regular users.
All Communities > Builder > 'Upper left icon' > Administation > Pages > Advanced Customizations/Go to Force.com > Public Access Settings
At the same time, you should create a Public Group for the Guest User to join. You can then share internal data (Sharing Settings) with the public group and expose the lookup field data. You can even put a filter on the data you expose.
Then you create a Global Action for your community where you determine predefined field values and a page layout for the community. In that layout, the lookup field you created can be included.
The Trailblazer/Success pages in Salesforce can give you more detail, but it can now be done.