여기에서 묻는 질문과 비슷한 질문을 검색했지만 찾을 수 없었습니다. 벌써이 질문에 답하고 대답하는 질문이 있으면 사과드립니다. 내가 할 노력하고있어
내 자신의 HTML 및 CSS를 사용하여 중력 양식 진행률 표시 줄을 교체합니다. 중력 양식 (Gravity Forms)에서 제공하는 gform_progress_bar
필터를 사용하여이 작업을 수행 할 수 있습니다.
내가 지금 실행하고있는 문제는 양식에 Ajax를 사용하고있는 양식에 항목을 입력하면 문제가되는데, 이제는 확인 메시지가 표시되지 않습니다. 필터를 주석 처리하고 양식을 작성하면 확인 메시지가 표시됩니다.
또 내가 알아 내려고하는 것은 내 확인 메시지가 표시되지 않거나 어떻게 올바르게 검색 할 수 있는지입니다. 이제
function request_quote_progressbar($progress_bar, $form, $confirmation_message) {
$output = '';
$output .= '<div class="meter animate">';
$output .= '<span class="progress-one">';
$output .= '<span>';
$output .= '<div id="percentage">0%</div>';
$output .= '</span>';
$output .= '</span>';
$output .= '</div>';
$progress_bar = $output;
return $progress_bar;
}
add_filter('gform_progress_bar_2', 'request_quote_progressbar', 10, 3);
나는이를 테스트 할 때, 다시는 내 기본 확인이 표시되지 않습니다하지만 난 주석 경우 //add_filter('gform_progress_bar_2', 'request_quote_progressbar', 10, 3);
다음 기본 진행률 표시 줄이 형태로 표시됩니다 : 다음
나는 error_log(print_r($confirmation_message, true));
으로 시도했지만 비어있게되었습니다. 확인 메시지가 있었다면 난 그냥보고 error_log(print_r($form, true));
를하고는 있지만 그것은 다음과 같이 표시됩니다 :
[confirmations] => Array
(
[58518896a4081] => Array
(
[id] => 58518896a4081
[name] => Default Confirmation
[isDefault] => 1
[type] => message
[message] => Thank you for your request!We are in the process of reviewing your quote and will be in touch with you within the next few days.
[url] =>
[pageId] => 0
[queryString] =>
[disableAutoformat] =>
[conditionalLogic] => Array
(
)
)
)
그래, 이제 확인 메시지를 받았습니다. 확인 메시지를 받기 위해 제 자신의 문제를 파악했습니다. 내가 한 일은 아래에있다 : ' $ confirmation_message = $ form [ 'confirmations']; foreach ($ confirm_message as $ key => $ value) { error_log (print_r ($ value [ 'message'], true)); } 내 확인을 인쇄했습니다. 그래서 이것을'$ confirmation_message'로 넣었습니다. 그러나 폼을 완료 할 때 여전히 확인 메시지를 표시하지 않습니다. –