Score:0

Automatically Insert value in field while creating content depending on user

ru flag

I am stuck on something. I have different users each representing a specific Faculty. Using the groups module I let each one edit and delete its own content but while creating a content of custom type diploma, there is a field called Faculty in which the user can select any faculty he wishes. I am trying to make this field disabled and filled automatically with the faculty itself. For more clarification I will give a small example. Let's say X is the user's faculty(user is named X also) and we have faculties X,Y and Z. When creating the content since I am logged in as X I would want the faculty field to have the value X and the user not being able to edit it. I am stuck at this, kindly help if possible.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.