Jump to content

danielg05

Members
  • Posts

    9
  • Joined

  • Last visited

  • Days Won

    1

danielg05 last won the day on January 18 2018

danielg05 had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

danielg05's Achievements

Newbie

Newbie (1/14)

1

Reputation

  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]"); } else if ("[@field:Account_show]" == "No"){ document.getElementById("[@field:Account_value]").hide(); } </script>
  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; </script>
  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.
  6. I am trying to allow for this JQuery tag affect to occur when the user types in to the text area in the virtual field of my submission form but have not been successful. Disclosure: Since I am new to Javascript, I was wondering if I am referencing the JQuery and Tag-It components properly? I attempted switching the id/class element with "cbParamVirtual1" and "caspioform" but no luck. I would appreciate anyone's feedback. (This is in the footer of the datapage.) <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript" charset="utf-8"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/tag-it/2.0/js/tag-it.js" type="text/javascript" charset="utf-8"></script> <script language="JavaScript"> $(function(){ //------------------------------- // Single field //------------------------------- $('cbParamVirtual1').tagit({ // This will make Tag-it submit a single form value, as a comma-delimited field. singleField: true, singleFieldDelimiter: ',', singleFieldNode: $('#mySingleField') }); }); </script>
×
×
  • Create New...