Hello, I’m using the macro sc_ajax_message(“Message”, “Title”, “Parameters”, “Parameters_Redir”, “String_toast”) in my code. When the user clicks the OK button, I would like them to be redirected to another form. To open the appropriate record, I want to pass a parameter contained in a variable $Parameters_Redir, which has the value “pkid=255”.
The message displays correctly, but once I click the OK button, it redirects me to the correct form but with the wrong record, as if the value of pkid is 1.
Below is the code. Any idea what might be wrong?
sc_ajax_message($msg_0, “MESSAGE TITLE”, “modal=N&button=Y&button_label=Ok&redir=form_fiche_projet_devis_en_attente.php&redir_target=_self”, $Parameters_Redir, “”);