Announcement

Collapse
No announcement yet.

Parameters or PHP variables in sc_confirm()

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parameters or PHP variables in sc_confirm()

    Hi there-

    sc_confirm works if you use a hardcoded string. But for me, when I do the following, it does not work. This is code from a button event:
    $conmsg = 'Are you sure you want to send '.[local_total_count].' emails';
    echo $conmsg; // This echos out the proper text.
    sc_confirm($conmsg); // This gives a blank confirmation box.

    Let me know the status, thanks. I'm using SC7

  • #2
    Hello cyman,

    Issue reported to our bugs team.

    Instead of passing the whole string in a variable, have you to pass only the global variable (hardcoding the rest of the string)?

    sc_confirm('Are you sure you want to send '.[local_total_count].' emails');

    regards,
    Bernhard Bernsmann

    Comment

    Working...
    X