NeoInJS 2 Posted October 12, 2017 Report Share Posted October 12, 2017 How can I put the current day of the week in an App Paramater Quote Link to post Share on other sites
0 Mathilda 66 Posted October 16, 2017 Report Share Posted October 16, 2017 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]') Quote Link to post Share on other sites
0 NeoInJS 2 Posted October 16, 2017 Author Report Share Posted October 16, 2017 Thank you @Mathilda. For Submission forms, how can I initialize a regular text field to get the Current day of the week Quote Link to post Share on other sites
0 Mathilda 66 Posted October 17, 2017 Report Share Posted October 17, 2017 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: <script> 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; } </script> Enter name of your field instead of: Field_name MayMusic 1 Quote Link to post Share on other sites
Question
NeoInJS 2
How can I put the current day of the week in an App Paramater
Link to post
Share on other sites
3 answers to this question
Recommended Posts
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.