Jump to content
  • 0

Dynamic "App Parmeter"


VincenzoCocciolo
 Share

Question

2 answers to this question

Recommended Posts

  • 0

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:

gSp2gSt.png
 

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.

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.

Guest
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.

Loading...
 Share

×
×
  • Create New...