Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I need to prepopulate the role field on the user add form depending on the current user role.
I already tested the populate module on D8, but the checkbox field can't be prepopulated...
I have tried to hook the user_insert function with this :
How do implement contextual filter where the results of the view limited to content that has particular field value only. I have the user id context which is working well but the context for fields with specific value is where I'm stuck. Thanks for any suggestion.
I am using paragraph module and create paragraph types as well. I create a content type Quiz where i add paragraph field as reference.
i create a quiz page and create three paragraphs now i want to show index or counter or paragraph on paragraph.html.twig template but i how can i print the counter / index so it gave me
I have fields in my database that repeat for the same answer to the first drop down box. In other words, based on a drop down box of 20 choices, some fields can be populated with the same answers, or if the choice already exists, those extra fields do not appear in the form because they are not necessary. We have 20 companies let's say, but 100 deals. One company may have many deals but the data in the 5 fields is the same for each company (entry). The list of companies is updated by me manually in the list (text) content types under structure.