Jump to content

ShWolf

Caspio Guru
  • Posts

    105
  • Joined

  • Last visited

  • Days Won

    3

Community Answers

  1. ShWolf's post in How To Redirect User To The Selected Value From The Dropdown was marked as the answer   
    Insert code into the footer of the DataPage
     


    <script type="text/javascript">
    v_a = document.getElementById('YOURFIELDID');
    if (v_a){
    v_a.onchange = function(){
    v_a = document.getElementById('YOURFIELDID');
    document.location = v_a.options[v_a.options.selectedIndex].value;
    }
    }
    </script>

    And replace YOURFIELDID with correct dropdown field id.
     

    So if you insert this JS in to the Footer of your DataPage and select some value in the dropdown (YOURFIELDID should be replaced with dropdown id), you will be redirected to the selected value (correct URLs should be used as dropdown values).
     
    NOTE: This JS doesn't work in the DataPage Preview and iFrame deployment because of iFrame security
×
×
  • Create New...