私は次のコードを持っています。用語が読み込まれたダイアログがあり、フォームの送信時に表示されます。ダイアログの同意ボタンからフォームを送信してください。
$(".terms").dialog({
  autoOpen: false,
  modal: true,
  height: 400,
  width: 500,
  buttons: {
    "I agree": function() {
      return $("#new_user").submit();
    },
    "Don`t agree - Exit": function() {
      return $(this).dialog("close");
    }
  }
});
$("#new_user").submit(function(e) {
  e.preventDefault();
  return $(".terms").dialog("open");
});
ありがとう!