VincenzoCocciolo Posted October 18, 2021 Report Share Posted October 18, 2021 Hi all Is possible to define a Dynamic App Parameter? As an example define a "CurrentYear" App Parameter with a formula And so use "Current Year" as default value in a filed od a Submission form Thanks for any tips Quote Link to comment Share on other sites More sharing options...
0 CoopperBackpack Posted October 19, 2021 Report Share Posted October 19, 2021 Hello @VincenzoCocciolo, I don`t think that App Parameters can be dynamic. If the desired result is only related to the current year and you need to have a text field pre-populated with this value you may try JS solution: Paste the code to the DataPage Footer section. Do not forget to disable the HTML editor on the Advanced tab before pasting the code. Also, replace the field name. <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { const year = new Date().getFullYear(); document.querySelector('#InsertRecordCurrent_Year_field').value = year; //replace Current_Year_field with your field name }); </script> Hope this helps. Quote Link to comment Share on other sites More sharing options...
0 Tubby Posted January 1, 2022 Report Share Posted January 1, 2022 If you do not need to edit the said field in your submission form, you can also change it's form element to Calculated Value and use this formula to get the current year. YEAR(SysDateTime()) ~Tubbs Quote Link to comment Share on other sites More sharing options...
Question
VincenzoCocciolo
Hi all
Is possible to define a Dynamic App Parameter?
As an example define a "CurrentYear" App Parameter with a formula
And so use "Current Year" as default value in a filed od a Submission form
Thanks for any tips
Link to comment
Share on other sites
2 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.