Jump to content

Search the Community

Showing results for tags 'getDay'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Caspio Bridge
    • Caspio Apps for Ukraine
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL






Found 1 result

  1. Forgive me I'm an excel user trying to get things done on Caspio. I ask the user to input their flight number and use autocomplete to ensure it is a valid flight number for thier airport. Fieldname = Flightno I then ask the user to select the date of the flight Fieldname = FlightDate I thne calculate the Weekday no (using Mon = 1, Tue = 2) Fieldname = Dayno I then concatenate the Verified flight number and the day of the week to get a code I use to lookup and return details of the flight from a table Fieldname = Flightno_code To try to do the same in Caspio, I'm trying to use the following footer script <SCRIPT LANGUAGE="JavaScript"> function concatenate() { var Flightno = document.getElementById("InsertRecordFlightno").value; var Date = document.getElementById("InsertRecordFlightDate").value; var Dayno = Date.getDay(); var Dayno = document.getElementById("InsertRecordDayno").value; var Flightno_code = Flightno + "-0" + Dayno; document.getElementById("InsertRecordFlightno_code").value = Flightno_code; } document.getElementById("caspioform").onmouseover=concatenate; </SCRIPT> When I have the Date, flightno and Dayno as simple inputs, the concatenation works fine, but each element fails when they are not simple inputs. Can anyone point me in the right direction please?
  • Create New...