Jump to content

CroixRonaldCoppge

Members
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

CroixRonaldCoppge last won the day on June 18 2019

CroixRonaldCoppge had the most liked content!

Recent Profile Visitors

467 profile views

CroixRonaldCoppge's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. What are the requirements and  your budget?

    1. jeffs88keys

      jeffs88keys

      I have an app where our travel agents report their gross commission paid by the supplier.   A date range table determines the % of commission they earn.  However, we have several other factors that determine their % including whether it's their own purchase, whether the lead was given to them, etc.  Each of these variables is stored in a table.

      So, I need to be able to show the proper % of commission that they've earned as a calculation based on these variables.

      I know that's not detailed, but is a sense of what we are looking for.  

      The foundation is in place, but I just need help putting these calculations in.

      As to budget, I don't really have one.  i guess I'm looking for someone to scope out what we need and let me know what it will take to get done.

       

      Thanks

  2. Hi, Iren: Thanks for taking the time to look at this for me. What you say makes sense; however, I followed your suggestion, and it doesn't work. Independently, they work. Can you look at the code below and see if you see what I'm doing wrong? Thanks <SCRIPT LANGUAGE="JavaScript"> function concatenate() { var Firstname = document.getElementById("EditRecordFirst").value; var Lastname = document.getElementById("EditRecordLast").value; var Final = Firstname +" "+ Lastname; document.getElementById("EditRecordFullname").value = Final; //get current date var stamp = new Date(); //get Birthday. change "InsertRecordBirthday" if the fieldname is different var insertDate = document.getElementById("EditRecordDOB").value; var birth = new Date(insertDate); //calculation difference = stamp - birth; age = Math.floor(difference / (1000 * 60 * 60 * 24 * 365.25)); //assign it to Age field document.getElementById("EditRecordAge").value = age; } document.getElementById("caspioform").onsubmit=concatenate; </SCRIPT>
  3. I have two javascript functions, 1) to concatenate the first and last name and 2) to calculate age. Independently, they work, but when I place both in the footer of my datapage, the last function (age calculation) is the only one the works. Can someone tell me how to combine two functions in the footer of a datapage so they both work. Thanks,
×
×
  • Create New...