class FormSettings {
constructor (parentElement,formSettings,activeIndex) {
this.parentElement = parentElement;
this.formSettings = formSettings;
this.activeIndex = activeIndex;
this.ui;
this.build();
}
infoLink(type){
let message = '';
switch(type){
case "clone-and-archive":
message = '<strong>Clone Form and Archive This Version (Create New Version)</strong><br>Press this button if you want to create a new version of this form but want to keep the existing form records submitted to Vault. This button will automatically archive the current version of this form and automatically open a clone which you may edit and modify into a new version. This process will keep all form records completed using the current version of the form that are stored in Vault. You can verify if there are records in Vault for this form by referring to the “Records in Vault” number listed above in this control panel.';
break;
case "reedit":
message = '<strong>Re-Edit this Form (Clear Records and Re-Edit)</strong><br>Press this button if you WANT TO EDIT THIS FORM AGAIN AND DELETE / REMOVE ALL COMPLETED FORM RECORDS SAVED IN VAULT. Using this process will remove all saved records for this version of the form!';
break;
case "archive":
message = '<strong>Archive this Form (Deactivate Form)</strong><br>Press this button if you want to retire, lock, or make this form unusable, but not delete it or remove it from Docu-Bin. COMPLETED FORM RECORDS WILL REMAIN AND BE MARKED AS FROM AN ARCHIVED FORM VERSION SAVED IN VAULT.';
break;
case "clone":
message = '<strong>Clone this Form (Create Copy)</strong><br>Press this button if you want to create A COPY OF THIS FORM which you can edit or modify into an alternate version of the same form or use as the basis for a new form. The completed Vault records for the form you cloned will not be impacted.';
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.