I believe the answer is: Conformity
In general, the act of conformity is being done as an effort to be socially accepted by a certain social group. Conformity could developed even if we held a strong value that opposed the group value depending on how strong is our desire to fit into the group