Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ConfiForms Form Definition
formNamemyform
registrationFormTitleClick on change field to see the label change
trueINLINE


changeChangecheckbox

fldOriginal label texttext

change:truechangeLabel(formName, formId);Run custom JavaScriptchange

change:falsesetInitialLabel(formName, formId);Run custom JavaScriptchange

HTML
<script>
  function changeLabel(formName, formId) {
    if (isPageViewMode()) {
      AJS.$(formName).find('.i_holdingrow_fld').find('#i_labelfor_fld').html('New label text');
    }
  }

  function setInitialLabel(formName, formId) {
    if (isPageViewMode()) {
      AJS.$(formName).find('.i_holdingrow_fld').find('#i_labelfor_fld').html('Original label text');
    }
  }


  function isPageViewMode() {
   return AJS.$('#wysiwygTextarea_ifr').length === 0;
  }

</script>