Jump to content

danielg05

Members
  • Content Count

    9
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by danielg05

  1. I noticed this too. The rules vanish if the sections under list elements are empty. which could be a complete waste of time if you find out the hard way spending a lo time building them out first.
  2. With regards to Chris and May, because of recent releases and the asynchronous enhancements I was receiving an error message form the bridge about the "onload" event so I think this should suffice: <script type="text/javascript"> function f_submit() { document.getElementById("caspioform").submit(); } document.addEventListener('DataPageReady',f_submit); </script> Ref: https://howto.caspio.com/deployment/?_ga=2.55701288.248583459.1515247308-2040463417.1503146327
  3. If I have a set of results, but I would like the value in one column (yes/no) as a condition for the next column to appear; could I do something like the following? But is there a way to work around not having rules on this type of report?. Suppose a no value appeared adjacent to a value in the following example with states, how can I hide one or many others? https://howto.caspio.com/datapages/reports/result-set-layouts/ Would the following be a start?: <script> if("[@field:Account_show]" == "Yes"){ document.getElementById("[@field:Account_value]"); }
  4. This was a huge help, thank you Mathilda. I enhanced that set up with the following. Fyi @Community swap your value with "DATEFIELDNAME" and this will go back a revolving 1 year without manual intervention: <script> var Marker = new Date(); Marker.setFullYear(Marker.getFullYear() - 1, Marker.getMonth()); function chk_date(){ var mydate = document.getElementById('InsertRecordDATEFIELDNAME').value; if ( Date.parse(mydate) >= Marker) { alert('pick a date before the marker'); return false; } } document.getElementById('caspioform').onsubmit=chk_date;
  5. I would like to add a rule to a data page that prevents a user from selecting an erroneous date, ie anything after a certain like the current date or something after a age limit for the application. When I try to choose greater than or equal to for the birthday calendar field, it does not allow me to add a condition that prevents the user from proceeding. Is there a way to do this inside the data page? Thank you.
×
×
  • Create New...