calendar modification

calendar modification

IT MarcariaIT Marcaria Posts: 13Questions: 5Answers: 1
edited October 2023 in General

I have two fields that are initialized like this

                        label: "Internal Years:",
                        name: "InternalYears",
                        type: 'readonly',
                        attr: { class: "form-control", min: 1, type: "number" }
                        label: 'Whois Expiration Date:',
                        name: 'WhoisExpirationDate',
                        type: 'datetime',
                        format: 'YYYY-MM-DD',
                        attr: { class: "form-control", rows: "10", cols: "30", length: "1000", height: "400", width: "600" }

internal years can start at 0 or at x number and based on that number the calendar year should start initialized at the current year plus the number of numbers that appear there in internalyears
example internalyears 5 calendar 2028

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.


  • colincolin Posts: 15,204Questions: 1Answers: 2,592

    As it's a read-only field, you only need to worry about how that field is rendered - so you could columns.render for that, and add that number to the current year.


Sign In or Register to comment.