M
M
Maxim Voronkov2017-10-31 11:31:31
JavaScript
Maxim Voronkov, 2017-10-31 11:31:31

How to remove sort field in drupal 7?

Good afternoon. How to remove the sort field when editing a user's profile in a form?
59f834ab4ec59376297402.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Sokolov, 2019-08-04
@Kalini4ka

Move the line var p = ...inside the function, beforep.innerHTML =

A
Anton Spirin, 2019-08-04
@rockon404

var parents = document.getElementsByClassName('box');

Array.prototype.forEach.call(parents, function(parent) {
  var input = document.createElement('input');
  input.type = 'text';
  parent.appendChild(input);
});

N
Nikit Khaner, 2017-11-09
@Nikit

This field should be invisible, instead a sort button (drag & drop) appears to the left of the field, which allows you to sort multiple elements among themselves.
Your js is broken, look in the DevTools/Firebug console what exactly is broken...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question