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.
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
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']);