NetTalk Central

Author Topic: Read Only appearance  (Read 4923 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Read Only appearance
« on: September 09, 2010, 11:37:14 AM »
Is there a way to set the appearance of read only field prompts globally?  I make extensive use of fields that are conditionally hidden, but I am finding this makes the page very jumpy for the user.  Conditional read only functions fine, but the user only finds out a field is read only when they try to enter something.

Is there a separate style sheet used for the prompts of read only entries?  Something that can be globally applied and if so any suggestions for getting the 'greyed out' look'.

Many thanks.

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Read Only appearance
« Reply #1 on: September 09, 2010, 11:38:57 AM »
Sorry. Forgot to add using NT 4.49 but updating to NT 5 soon.

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Read Only appearance
« Reply #2 on: September 10, 2010, 02:08:26 AM »
Hi Casey,

Why don't you define the field as display?
That way you can make it look like regular "output text" so the user won't get confused.

E.g. Just type an equate for the field, define it as display.
In the Text-tab, set the sessionvar for the field in the value to display.
When you want the text to look bold, type 'FormPrompt' in NTWS4.xx or 'nt-prompt' in NTWS5

Cheers,
Rene
Rene Simons
NT14.14

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Read Only appearance
« Reply #3 on: September 10, 2010, 09:03:15 AM »
Thanks, Rene, but not quite what I was looking for.

The fields in question receive user input conditionally so a Display control won't really work.  The conditional read only works really well, it just doesn't look different from non-read only.   And being lazy, I was hoping to define the appearance change at a global level rather defining each field.   I think there is a way, so I will spend some time digging through generated code and post anything I figure out.

Thanks again for the response.   

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Read Only appearance
« Reply #4 on: September 10, 2010, 09:16:48 AM »
Hi,
There is a possibility withe changing the style.
Rene
Rene Simons
NT14.14

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Read Only appearance
« Reply #5 on: September 13, 2010, 01:36:15 PM »
For the sake of anyone following this thread, I have done some more digging in NT 4 and figured out there is probably a way to achieve global read only style, but doing it is ugly.  It involves not just creating a read only style, but changes to the base NetTalk Web Server templates and class.  As I said, not pretty.  I am going to leave this alone until after I update to NT 5.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Read Only appearance
« Reply #6 on: September 14, 2010, 12:08:27 AM »
Hi Casey,

yes, it's easy to do in NT5, not so easy to do in NT4.

cheers
Bruce