Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the Userview Builder
  2. Click on the userview that you want to add the restriction to
  3. Click on the "property" icon on the list that you want to modify
  4. Click on "UI (List)" tab from the breadcrumb
  5. Add the Javascript on the custom footer
Code Block
titleJavascript
<script>
    $(document).ready(function(){
	    // Filter form
        filters = $("#filters_test");
        // Filter ID 
        title = $("#d-49700-fn_title"); 
        // Need to give a small delay to allow the page to fully load
        setTimeout(function(){ 
            // Submit button
            btn = filters.find(".waves-button-input")[0]; 
            btn.onclick = function(event){
                if(title.val() == ''){
                    alert("Title must be designated");
                    event.preventDefault();
                }       
            };
        },250); // Increase this value to >1000 if script doesnt run properly
    })
</script>

...