This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Views multiple fields value filter

Hello,

I have two different user fields. First one is field_gender and field_search_for. What i want is, if these fields have a value like:

field_gender -> men

field_search_for -> women

the views filter should be set to field_gender -> women.

In concrete: field_gender has value men and field_search_for has value women, set views filter value to women. Sure, i can set a filter, where visitors can set their preferences, but they typed it already in their profile.

Thanks for your help,

Marvin

uppercase field

Hi, I would like to force a field to be uppercase. I did not understand, however, where to act if on the CSS part inside the prefix property or something else

Working on custom functionality, having some issues.

I am trying to get multiple forms to work in a views display. All of the forms uses AJAX, but they appear to be interfering with each other. 

Dell EMC S3 bucket Module Needed.

Hi team, 

 Please let us know any module available in Drupal for Dell EMC S3 bucket.

Thanks & Regards

Raghav

How do I get the current Locale?

I need to find out the current locale.

I believe calling this function will do it for me: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Validatio...

However:

$locale = \DrupalTranslator::getLocale();

produces:

Buttons in custom form

In a custom form I have 3 buttons. and each calls a function.
In the validate of the form, I have inserted the control on a field before the processing takes place but it is only needed when I click on the first button.
When I click on the 2nd or 3rd button it does the same check but does not have to check.
I thought in validate to insert the check on which button was clicked and only for the first to check.
With kint I visualized the array
ksm ($form['submit']['#submit']);

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions