Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I have a datapage which is used for 'new' records and 'amend' records. When record is 'new', the datapage asks the user to input a start date and the end date is a calculated field. There are contained in section 1. If the record is 'amend', I want to make section 1 hidden and display section 2 with virtual fields which only shows the previously input values of the start/end date. However, hiding section 1 is causing an error saying 'Values in one or more fields are invalid' when trying to submit the form. If I unhide section 1, I can submit the form. Any idea what's going on? Many thanks
  2. Hi, I think I'm ok on this front now. Thank you for responding.
  3. @Vitalikssssss Hi, I have a few text fields in my data page and tried your code (below) but I'm not getting any results. Am I missing something? Many thanks <script> document.addEventListener('DataPageReady', assignEvent); function formatAsDollars(el) { el.value = el.value.replace(/[^\d]/g,'').replace(/(\d\d?)$/,'$1').replace(/^0+/,'').replace( /\d{1,3}(?=(\d{3})+(?!\d))/g , "$&,"); el.value = el.value ? '$' + el.value : ''; } function assignEvent(){ let fields = ["Stock", "Content"]; //specify your fields here fields.forEach(element =>
  4. Is it possible: 1. to grey out or not display dates before today 2. before a certain date in the past 3. after a certain date in the future in the popup calendar? If so, any pointers would be appreciated. Many thanks
  • Create New...