NetTalk Central

Author Topic: Change 'Save' button text in Mobile?  (Read 2976 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Change 'Save' button text in Mobile?
« on: July 19, 2012, 05:04:29 PM »
When using a login form on my NetTalk apps, I do the trick suggested by the demo's to change the normal 'Save' button on the form to say 'Login' by doing the following:

p_web.site.SaveButton.TextValue = 'Login'

Works like a charm on a desktop browser, but on Mobile browsers, the button on the header still says 'Save'.  How can I get the mobile interface to display a different text on that button?



As an addendum to this question - I have some Clarion code in the Validate::LOC:Password routine on the login form.  Once again, it works fine on the desktop browsers, but on the mobile browser, the validation code does not seem to get called at all when the user taps off the password field?!?

EDIT2: Now I realise the validation code IS getting called, but the server is not picking up the value of the form field.  i.e. p_web.GSV('LOG:Login') is returning a blank when using the web browser, but returning a value when using the desktop browser... ?!?

EDIT3: It's a terrific day for answering my own questions again - but I just realised that I had Cookies disabled on my iPhone Safari browser which was causing the session variables NOT to be preserved in between tapping on different fields.  Enabled cookies and it all works now.  Still got the question on the button text though... :)

Thanks!
« Last Edit: July 19, 2012, 07:38:38 PM by Devan »

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Change 'Save' button text in Mobile?
« Reply #2 on: July 22, 2012, 05:10:45 PM »
Ah! Thanks Kevin - that did indeed answer my question.  Never realised there was a 'MobileText' property there too... :)