By default how can we set it to if Salutation=Mr then Sex = Male

By default how can we set it to if Salutation=Mr then Sex = Male, but still we can edit the sex form, if needed. But when we create a new pt registration, if mr is selected automatically the sex selected by the software should be male.

Hi Robert James,
Add below code in interface\new\new_comprehensive.php.

$(“#form_title”).change(function()
{
var value=$(this).val();
if(value==‘Mr.’){
var gender=‘Male’;
$(“#form_sex”).val(gender).change();
}
if( value==‘Mrs.’|| value==‘Ms.’){
var gender=‘Female’;
$(“#form_sex”).val(gender).change();
}
});

Thanks,
Param,
help@capminds.com

1 Like

I love to experiment with codes and land into problem :smiley:
shall try …

nope that didnt work.

Plz check your title id and its value is same as code.
I shared my file interface\new\new_comprehensive.php for your reference.
Can you Share your file?

new_comprehensive.php (49.7 KB)