Open coiby opened 1 month ago
<?php $cu = get_current_user(); if (isset ( $_POST['osf_spiritual_practices'];)){ $osp = $_POST['osf_spiritual_practices']; if (!empty($osp)) { // Get the existing array of 'osf_buddhist_tradition' from the user meta $osf_buddhist_tradition = get_user_meta($cu->ID, 'osf_buddhist_tradition', true); $osf_buddhist_tradition[] = $osp; update_user_meta($cu->ID, 'osf_buddhist_tradition', $osf_buddhist_tradition); } } ?>
have now removed the option "Other (please specify)" because there is no way to use this option and thats all it s. so removed, but the other field still does not work in the screen shot notice the custom validation with a hook for the custom code in osf_spiritual_practices_hook
next notice the code in the themes maxcoach functions.php file
and then try to add data to the field and see that it does not update the Buddhist Traditions field
I think it's a good idea to simply remove "please specify" from "Other (please specify)" because it may cause trouble for the feature of searching meditation center or teacher. Personally, I don't think there is a need to use custom validation and I'll confirm it later.
An easy way for users to notify us of other missing traditions from a UX perspective is for users to have that ability right in the form where they are entering their information. If we have to take a more manual approach then that's fine. We could have the users input other traditions/lineages in an empty text box and then those responses that get sent to us as a csv and we can decide which ones to add. This is just one idea though.
Describe the bug
The Buddhist Tradition(s) field has a value "Other (please specify)" which indicates users can specify their own tradition if it's in the predefined list. But actually nowhere can users specify a custom tradition.
To Reproduce Steps to reproduce the behavior:
Expected behavior To not confuse the users, we should either simply remove "(please specify)" from "Other (please specify)" or allow users to specify a custom tradition.
Screenshots