Expand my Community achievements bar.

SOLVED

I want to delet the word "null" How do I do?

Avatar

Level 4

Hello!

I have a form that there are two pages. The first page there are many fields and the second page is just copying the information fields of the page 2.


But always when the user doesn´t fill someone field, show on the page 2 the place with the word "null"

How do I do to the place be just white?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You could test the value of the fields on the first page and if they are not null copy the data. For example:

if (page1.firstName != null)

{

     this.rawValue = page1.firstName

}

However you can also use a global binding (Object > Binding tab). This will work if the corresponding objects on page1 and page2 have the same name. In this case there is no requirement for scripting.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

You could test the value of the fields on the first page and if they are not null copy the data. For example:

if (page1.firstName != null)

{

     this.rawValue = page1.firstName

}

However you can also use a global binding (Object > Binding tab). This will work if the corresponding objects on page1 and page2 have the same name. In this case there is no requirement for scripting.

Hope that helps,

Niall

Avatar

Level 4

Again, Nill always helping the guys!!

Thank!