Jump to content
  • 0

Current day of the week in an App Parameter



4 answers to this question

Recommended Posts

  • 0
On 10/12/2017 at 9:04 PM, NeoInJS said:

How can I put the current day of the week in an App Paramater

As far as I remember app parameter doesn't have this flexibility. Depending on the type of the datapage you will be able to get current day of the week in calculated field:

DATENAME ( dw , '[@cbTimestamp]')  


Link to comment
Share on other sites

  • 0
16 hours ago, NeoInJS said:

Thank you @Mathilda. For Submission forms, how can I initialize a regular text field to get the Current day of the week

In this case you may use java script. I created a simple example for you, you should paste script in the footer of the datapage:

window.onload = function myFunction() {
    var d = new Date();
    var weekday = new Array(7);
    weekday[0] = "Sunday";
    weekday[1] = "Monday";
    weekday[2] = "Tuesday";
    weekday[3] = "Wednesday";
    weekday[4] = "Thursday";
    weekday[5] = "Friday";
    weekday[6] = "Saturday";

    var n = weekday[d.getDay()];
    document.getElementById("InsertRecordField_name").value = n;

Enter name of your field instead of: Field_name

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...