cherosoullis VIP
Total posts: 165
08 May 2013 21:51

Hello,

I was wantering if there is a way to hide fields if there is no value in it.

Meaning, I have a text fields and I don't what to be shown if the user does not enter value in it.

Thanks

Last Modified: 02 Mar 2014


Sackgesicht VIP
Total posts: 1,636
08 May 2013 22:01

Actually that is the standard behaviour of Cobalt .. :D


cherosoullis VIP
Total posts: 165
08 May 2013 23:43

I saw that working woth checkboxes but is not working with digits field.

As you can see at

http://www.cypruslandlord.com/register-your-property/user-item/698-hotmail/4-buy/1-ref-no-2345

the null value enters default as zero (0)


Sackgesicht VIP
Total posts: 1,636
09 May 2013 00:06

Actually it is working with all fields ..

If you type in "0" in a digit field, it is considered a value ...

Just remove the "0" and leave the field blank and it will not display anymore.

I double checked it here with my installation.


Sergey
Total posts: 13,748
09 May 2013 05:29

Is it digits field?


Sergey
Total posts: 13,748
09 May 2013 05:41

Then I can confirm that if nothing is entered the fields will not be displayed.

before it would not even display with 0 value. But someone requested that he wants 0 values to be displayed which make sense for price for example.


cherosoullis VIP
Total posts: 165
09 May 2013 15:49

I haven't enter any value in the field. It is a digits fields and the value "0" is field by itself. I edited the record also and there is no value (0) in the field.

I just found why this was happening. If I enter in format text before of text after the the field is consider as having a value and it is shown. I think this is a minor bug that needs to be fixed


Sergey
Total posts: 13,748
10 May 2013 07:14

I have made some fixes to next digits field version.

Powered by Cobalt