How to create webform according to user rules I wanted to create a "Contact Us" webform, which should have following fields-


Name
Email Address
Contact No
Message


For an anonymous user, all of these fields should display.However for logged in user, field 1, 2 and 3 should not be displayed.

I don't see any option in webform to set a filed in such a way, so that only anonymous user can see it.

I tried to create two webform and assigned different-2 submission access but unknowingly now the website is having two menu items.
you need to try this coding
  

function _form_edit_module_form_alter(&amp;$form, &amp;$form_state, $form_id) {   
 if($form_id =='webform_form_id') {           
  //check login user enter in site
  global $user;
  if ($user-&gt;uid) {
     $form['component_name']['#attributes']['disabled'] = true;
  }               
 }
}


and also you need check  Webform Conditional module