Browse Source

disclaimer message for using both ajax and hidden fields

Shawna Spoor 6 years ago
parent
commit
691dea766e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tripal/includes/TripalBundleUIController.inc

+ 8 - 0
tripal/includes/TripalBundleUIController.inc

@@ -240,6 +240,14 @@ function tripal_tripal_bundle_form($form, &$form_state, $entityDataType) {
     '#description' => t('Uncheck this box if you do not want field data to load by ajax, this may signifiantly increase page load times.'),
     '#default_value' => $ajax_field_var,
   );
+  $form['ajax_field disclaimer'] = array(
+    '#type' => 'item',
+    '#markup' => t(
+      '<p>Please note, if both "Hide empty fields" and "Load field using AJAX" 
+      are checked empty fields will be hidden using javascript which may result
+       in some jumpiness of content as the page finishes loading.</p>'
+    ),
+  );
   $form['additional_settings'] = array(
     '#type' => 'vertical_tabs',
     '#weight' => 99,