Forum Replies Created
-
What ecactly want is to collect data input in a form and according hotel name send query to the appropriate link in order to get results
in reply to: External Url in post formUnder field Hotel i have two labels
Faliraki Hotel with value x
Florida Hotel with value yWhen the visitor choose Faliraki Hotel and submit the form it should be redirected to https://cyprotelfaliraki.reserve-online.net/ and when choose Florida Hotel should be redirected to https://cyprotelflorida.reserve-online.net/.
In a previous communication we had you ask me to change the function.php and add the following code:
function dhvc_form_after_processor_custom($form_id){
if($form_id == ‘ENTER_YOUR_FORM_ID’){
if(isset($_REQUEST[‘Hotel’])){ //Hotel is field name
$value = stripslashes_deep($_REQUEST[‘Hotel’]);
if($value == ‘x’){
wp_redirect(‘redirect to X url’);
}elseif ($value == ‘y’){
wp_redirect(‘redirect to Y url’);
}
}
}
}
add_action(‘dhvc_form_after_processor’, ‘dhvc_form_after_processor_custom’);If i keep the form settings as it is now i select the values on fields and is not redirected me anywhere that mean i need to choose an action type for the form. I choose external url.
What url should apply there from the time that i have two different url values need to be redirected after the submit button.Thank you for your help
in reply to: External Url in post formIt suppose that i have two values under hotel and should redirect to a different link. I do the changes according your instructions but in the settings of that form i dont have the option to redirect on different link according what you choose
in reply to: External Url in post formThis reply has been marked as private.in reply to: External Url in post formprevious respond is solved. I have a problem now when i choose the x value is not take me to the correct url. is not sending me anywhere. can you please help
in reply to: External Url in post formThank you for your reply but it seems something is wrong because when i proceed with changes the function is show on top of my page.
Regards
Andreas Markoudis
Attachments:
You must be logged in to view attached files.in reply to: External Url in post formThis reply has been marked as private.in reply to: form cssI have two date field one is checkin and the other one is checkout. You have send me coding to validate the checkin (not allow select day before today). I need to add also for the checkout. Am i going to use the same coding?
in reply to: Field ValidationNow i need for another field checkout date to have the same validation. can you please assist
in reply to: Field Validationok is working now. thank you
in reply to: Field ValidationI have proceed with changes. I have change also according your instruction the ENTER_YOUR_DATE_FIELD_NAME and ENTER_YOUR_DATE_FIELD_NAME. I have test it but it allow me to choose date before the today date.
in reply to: Field ValidationThis reply has been marked as private.in reply to: csscan i have your help please
in reply to: Problem with my site formsI know where the settings are but as you can see in the image i have send you field boxes are big so the label are loosing.
in reply to: DHVC Form file not upload