Jaime
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Submit button with a url conditional based on a select field
Iniciado por: Jaime
en: Toolset Professional Support
Problem: I have a Form that includes a select field. Depending on the selection, I would like to redirect the User to a different location. Solution: Use the cred_success_redirect hook to redirect based on the form contents: add_filter('cred_success_redirect', 'custom_redirect_form_abc',10,3); function custom_redirect_form_abc($url, $post_id, $form_data) { if ($form_data['id']==837){ if ( get_post_meta($post_id, 'wpcf-tipo-de-empresa', true ) == 'Empresa') { $url = "http://bormujazz.com/form-empresa"; }elseif ( get_post_meta($post_id, 'wpcf-tipo-de-empresa', true ) == 'Profesional') { $url = "http://bormujazz.com/form-profesional/"; } } return $url; } Relevant Documentation: |
|
3 | 7 | hace 5 años, 3 meses | |
Radio (or) Checkbox Field pre-selected in a Search
Iniciado por: Jaime en: Toolset Professional Support |
|
2 | 7 | hace 5 años, 3 meses |