This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let urlbox = document.getElementById("ff_150_chained_select_Website_"); //changed id with your specific id | |
urlbox.onchange = function(){ | |
let url = document.getElementById("ff_150_chained_select_Website_").value; | |
window.open(url); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Change id with your password field's id | |
let passwordOne = document.getElementById("ff_143_password"); | |
let passwordTwo = document.getElementById("ff_143_password_again"); | |
passwordTwo.addEventListener('keyup', function(){ | |
let passwordTwo = document.getElementById("ff_143_password_again"); | |
console.log(passwordTwo.value); | |
//code here | |
if(passwordTwo.value==passwordOne.value){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let slider = document.getElementById('ff_148_rangeslider'); | |
let text = document.querySelector('.ff_range_value'); | |
let text2 = document.querySelector('.ff_range_value_2'); | |
slider.onchange=function(){ | |
let value = document.getElementById('ff_148_rangeslider').value; | |
value *= 15; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let inputBox = document.getElementById("ff_150_input_text"); | |
inputBox.addEventListener('input', function(){ | |
inputBox.value = inputBox.value.toUpperCase(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('fluentform_insert_response_data', 'your_custom_response_data_filter_function', 10, 3); | |
function your_custom_response_data_filter_function($formData, $formId, $inputConfigs) | |
{ | |
if($formId != 151) { | |
return $formData; | |
} | |
$formData['email'] = '[email protected]'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('fluentform_validate_input_item_input_email', function($errorMessage, $field, $formData, $fields, $form) { | |
$target_form_id = 8; | |
if($form->id != $target_form_id ) { | |
return $errorMessage ; | |
} | |
if( $formData['email'] != $formData['email_1'] ){ | |
$errorMessage= ['Error! Email does not match']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let emailFieldOne = document.getElementById('ff_156_email'); | |
let emailFieldTwo = document.getElementById('ff_156_email_1'); | |
let submitButton = document.querySelector('.ff-btn-submit'); | |
submitButton.style.display = 'none'; | |
emailFieldTwo.insertAdjacentHTML('afterend', '<div id="customDiv" style="text-align:center; display:none; color:red;"></div>'); | |
let displayed = false; | |
let customDiv = document.getElementById('customDiv'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
let sliderValue = document.querySelector('.ff_range_value'); | |
var number = 0; | |
sliderValue.insertAdjacentHTML('afterend', `<span class=range_calc style='display: block; width: 100%; text-align: center; font-size: 32px; font-weight: 600;'>$0</span>`); | |
document.querySelector('.range_calc').insertAdjacentHTML('afterend', "<span class='text' style='display: block; width: 100%; text-align: center; font-size: 32px; font-weight: 600;'> Potential Earnings </span>"); | |
number = document.querySelector('.ff_range_value').innerText.split('$'); | |
number = number[0]*15; | |
document.querySelector('.range_calc').innerText =`$${number}`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('fluentform_before_insert_submission', function ($insertData, $data, $form) { | |
if($form->id != 229) { // 229 is your form id. Change the 229 with your own login for ID | |
return; | |
} | |
$redirectUrl = home_url(); // You can change the redirect url after successful login | |
if (get_current_user_id()) { // user already registered | |
wp_send_json_success([ | |
'result' => [ |
OlderNewer