Open site101 opened 2 years ago
just eliminate the option for opposite sex
you need to edit this file...
$oForm->addElement(
new Radio(
t('I am a'),
'Yid',
[
GenderTypeUserCore::FEMALE => '👩 ' . t('Lady'),
GenderTypeUserCore::MALE => '👨 ' . t('Mensch'),
],
['value' => GenderTypeUserCore::FEMALE, 'required' => 1]
)
);
$oForm->addElement(
new Checkbox(
t('Looking for a'),
'match_sex',
[
GenderTypeUserCore::MALE => '👨 ' . t('Man'),
GenderTypeUserCore::FEMALE => '👩 ' . t('Woman'),
],
['value' => GenderTypeUserCore::MALE, 'required' => 1]
)
Hello, I am developing for a traditional private organization.
I followed the steps to remove the "couples" option.
How would I go about making the software opposite sex only?
Thank you in advance.