NetTalk Central

Author Topic: Change Comment on a field  (Read 2691 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Change Comment on a field
« on: January 15, 2019, 06:03:24 AM »
NT 11.04
CL 11
Theme: base

On a customer form I have 5 fields that contain the path to specific locations on the server
Each field has a button beside it to create the directory

I use some code to manipulate the comment on the field.  If the directory exists it says 'OK' if not it says 'please create'
This works fine.  It does not refresh however when I click the button and create the file.
I thought I would put the code on the buttons instead which is also OK except when I click the button and create the directory.

Is there a way to change the comment of another field?  Click the button and have the comment change on the Directory field?

Thanks.




Brian

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Change Comment on a field
« Reply #1 on: January 15, 2019, 06:40:37 AM »
Hi Brian,

Yes.  On the Client-Side tab of the button make sure you refresh the field holding the path, just the comment will do since that's what you want to change.

Now, on the field itself put something like the following in the comment: choose(p_web.gsv('path_exists'),'OK','Please create'). This should do the trick (assuming you have a session value holding information about whether the path exists or not).

Peter