Versions Compared

Key

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

...

Another

...

generic

...

thing

...

we

...

might

...

do

...

is

...

remove

...

all

...

the

...

"+"

...

prompt

...

fields

...

from

...

the

...

screen

...

and

...

strip

...

the

...

trailing

...

dots

...

from

...

all

...

the

...

field

...

labels.

...

To

...

do

...

this

...

you

...

could

...

add

...

code

...

like

...

this

...

to

...

the

...

SHARED,ApplyStandardLayout

...

function:

...

/*

...

Get

...

all

...

elements

...

between

...

lines

...

3

...

and

...

22

...

*/

...

var aH = HTMLAPI.getElementsinRowRange(3,22);

...

/*

...

Hide

...

all

...

fields

...

containing

...

"+"

...

signs

...

and

...

strip

...

trailing

...

dots

...

from

...

others

...

*/ 

for (i = 0; i < aH.length;

...

i++

...

)

...

{

...

    var oH = aH[i];

    if ((oH != null) && (typeof(oH.tagName)

...

!=

...

"

...

undefined"

...

))

...


    {
       var fIsINPUTField = ((oH.tagName

...

=

...

= "

...

INPUT"

...

)

...

||

...

(oH.tagName

...

==

...

"TEXTAREA"

...

));

...

               if ( !(fIsINPUTField)

...

)

...

/*

...

This

...

NOT

...

an

...

input

...

field

...

on

...

the

...

screen

...

*/

...


      

...

{
          if (oH.innerText

...

==

...

"+"

...

)

...

HTMLAPI.hideElement(oH);

...


          else                     HTMLAPI.stripTrailingDots(oH);

...


      

...

}  

...


   

...

}

...


 

...

}

...

When

...

executed

...

the

...

example

...

5250

...

now

...

looks

...

like

...

this:

Image Added