Bkvin Posted August 16, 2020 Report Share Posted August 16, 2020 Hello, I have a question, I have a question, to avoid errors, how can we set the save option to "stay on page". because each time you have to select the right option. Thank you Best regards Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted August 16, 2020 Report Share Posted August 16, 2020 Edit your admin_editperson.php file search (env line 767) for this text : <?php echo $admtext['onsave'] . ":<br/>"; if( $allow_add && ( !$assignedtree || $assignedtree == $tree ) ) { echo "<input type=\"radio\" name=\"newfamily\" id=\"radiochild\" value=\"child\">{$admtext['gotonewfamily']} ($personID) {$admtext['aschild']}<br/>\n"; if( $row['sex'] ) echo "<input type=\"radio\" name=\"newfamily\" id=\"radio$self\" value=\"$self\">{$admtext['gotonewfamily']} ($personID) $selfdisplay<br/>\n"; } echo "<input type=\"radio\" name=\"newfamily\" value=\"return\"> {$admtext['savereturn']}<br/>\n"; if( $cw ) echo "<input type=\"radio\" name=\"newfamily\" value=\"close\" checked> {$text['closewindow']}\n"; else echo "<input type=\"radio\" name=\"newfamily\" value=\"none\" checked> {$admtext['saveback']}\n"; ?> the checked tag means that this option will be checked by default. If you want savereturn to be checked, Add checked to the line with savereturn : echo "<input type=\"radio\" name=\"newfamily\" value=\"return\" checked> {$admtext['savereturn']}<br/>\n"; and delete the two others checked tags : if( $cw ) echo "<input type=\"radio\" name=\"newfamily\" value=\"close\"> {$text['closewindow']}\n"; else echo "<input type=\"radio\" name=\"newfamily\" value=\"none\"> {$admtext['saveback']}\n"; Michel Quote Link to comment Share on other sites More sharing options...
Bkvin Posted August 16, 2020 Author Report Share Posted August 16, 2020 ok, that was easy, i hadn't thought about it. Thank you. Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted August 16, 2020 Report Share Posted August 16, 2020 OK BKvin, set the title of the topic as SOLVED. Michel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.