function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MicheTMicheT 

web to case not working

I have to fields that I would like to autopopulate 2 fields: Issue and User Profiles from a web to case form on our website. However, they are both picklists and User Profiles is dependant on Issue. This is the html code that I have but it is not working:

<input type=hidden id="00N4100000JXp7G" name="00N4100000JXp7G" title="Issue" value="User Profiles">
<input type=hidden  id="00N4100000R4Zno" name="00N4100000R4Zno" title="User Profiles" value="Create Profile">

When I test it, I receive this error: 
Reason: bad value for restricted picklist field: Create Profile

Any suggestions?
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Miche, I hope it will be helpful.

BestRegards
RahulKumar