11
Web Server - Ask For Help / Re: How to Hide and UnHide a Radio Option
« Last post by Jane on September 15, 2026, 07:23:44 AM »What I would try:
For each of the options, in the CSS for that option use an expression like (this is pseudo-code)
For each of the options, in the CSS for that option use an expression like (this is pseudo-code)
Code: [Select]
CHOOSE(p_web.GSV('hide option variable'),' nt-hide','')12
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Jane on September 15, 2026, 07:17:21 AM »I've been doing this for some years.
The attached is an example I sent to somebody in 2022.
There's some stuff in the css that's not needed for the example (I didn't take time to clean it up) but it's a working NT12 example.
EDIT: This NT12 example will require some modification to run on NT 14.
NT14 example several posts down.
The attached is an example I sent to somebody in 2022.
There's some stuff in the css that's not needed for the example (I didn't take time to clean it up) but it's a working NT12 example.
EDIT: This NT12 example will require some modification to run on NT 14.
NT14 example several posts down.
13
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by JohanR on September 15, 2026, 04:18:57 AM »Hi Richard
I recently did some work on my login screen and your post got me to bring this functionality forward.
Also wanted to see how AI would handle this and use it as a learning exercise.
I know you mentioned you prefer no JS, but this worked quite nicely.
This was done with adding a JS file and some CSS , courtesy of AI
Let me know then I can adjust the CSS and JS to make sure it's generic for use on any other page with different naming
Still testing but working well so far.
regards
Johan
I recently did some work on my login screen and your post got me to bring this functionality forward.
Also wanted to see how AI would handle this and use it as a learning exercise.
I know you mentioned you prefer no JS, but this worked quite nicely.
This was done with adding a JS file and some CSS , courtesy of AI
Let me know then I can adjust the CSS and JS to make sure it's generic for use on any other page with different naming
Still testing but working well so far.
regards
Johan
14
Web Server - Ask For Help / How to Hide and UnHide a Radio Option
« Last post by Johan de Klerk on September 15, 2026, 03:05:06 AM »Hi,
I have a local variable: Loc:VehicleType
In this variable I have 6 options:
Option1 = Option 1
Option2 = Option 2
Option3 = Option 3
Option4 = Option 4
Option5 = Option 5
Option6 = Option 6
I am resetting this variable based on another selection made on the form.
There is a READ-ONLY IF CONDITION prompt on the template in the Option1 -> 6.
The READ-ONLY works and makes the Radion Option1 -> 6 Read-Only.
However I want to Hide Option1 -> 6 depending on the selection made on the other variable.
Is this possible and how would I do this.
Any help and suggestions would be appreciated.
Regards
Johan de Klerk
I have a local variable: Loc:VehicleType
In this variable I have 6 options:
Option1 = Option 1
Option2 = Option 2
Option3 = Option 3
Option4 = Option 4
Option5 = Option 5
Option6 = Option 6
I am resetting this variable based on another selection made on the form.
There is a READ-ONLY IF CONDITION prompt on the template in the Option1 -> 6.
The READ-ONLY works and makes the Radion Option1 -> 6 Read-Only.
However I want to Hide Option1 -> 6 depending on the selection made on the other variable.
Is this possible and how would I do this.
Any help and suggestions would be appreciated.
Regards
Johan de Klerk
15
Web Server - Ask For Help / Show/hide password in login form
« Last post by Richard I on September 14, 2026, 09:17:05 PM »Hi all
Can I have help toggling the password field please, ideally with/including an icon.
Ive been chasing my tail over it and would rather not use Javascript or the two fields option.
I did get some code suggestion from Copilot which was silent on how to make it "Fire'
My existing field is a Password field.
code from a working app would be wonderful.
Thanks
Richard
Clarion12 NT 14
Can I have help toggling the password field please, ideally with/including an icon.
Ive been chasing my tail over it and would rather not use Javascript or the two fields option.
I did get some code suggestion from Copilot which was silent on how to make it "Fire'
My existing field is a Password field.
code from a working app would be wonderful.
Thanks
Richard
Clarion12 NT 14
16
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« Last post by osquiabro on September 13, 2026, 04:00:12 AM »you can add a SessionValue in your script and then read in NT via webhandler in SessionValueSetFromBrowser or redirect in your JS to specific procedure in NT for read a result, example for set a value in JS:
SetSessionValue("striperesponse", JSON.stringify(paymentIntent) );
I recommend implementing it as a procedure outside the web handler, but the web handler is the easiest way to test it.
SetSessionValue("striperesponse", JSON.stringify(paymentIntent) );
I recommend implementing it as a procedure outside the web handler, but the web handler is the easiest way to test it.
17
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« Last post by rjolda on September 12, 2026, 04:43:07 AM »Hi Johan,
I am a JS newbie. I would love to see how you use JS to move data from returned fields onto the NT page.
I am querying NTSA API and I get back a string with the vehicle information which I parse out. I assign the returned data to the respective variables:
e.g. p_web.SSV('AutoYear',returnedYear), etc.
then I do a call to the validate: DO ValidateValue::CAT:VINnumber
all of the fields get refreshed.
Ron
I am a JS newbie. I would love to see how you use JS to move data from returned fields onto the NT page.
I am querying NTSA API and I get back a string with the vehicle information which I parse out. I assign the returned data to the respective variables:
e.g. p_web.SSV('AutoYear',returnedYear), etc.
then I do a call to the validate: DO ValidateValue::CAT:VINnumber
all of the fields get refreshed.
Ron
18
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« Last post by JohanR on September 10, 2026, 05:11:11 AM »Hi,
Think I found the problem, had an issue in the JS.
Will complete testing and resolve and report back
thanks
Johan
19
Web Server - Ask For Help / JS to update session variables or page fields?
« Last post by JohanR on September 10, 2026, 01:57:43 AM »Hi,
I am dabbling with the new GooglePlaces address lookup,
and have a very nice smooth interface working.
There are 3 script files and the last one is where the values returned from google places needs to be updated into NTWS and ideally update the fields on the page.
The script files handle all the communication and on screen type ahead interface.
Is there a script to push the values to update session variables along with the page fields?
Or another way to handle this?
thanks
Johan
tvcg1.js ? Google Loader
Stores the Google API key and loads the Google Maps/Places JavaScript library.
tvcg2.js ? Address Search
Creates the Google address search box, restricts searches by country, and gets the selected address from Google.
tvcg3.js ? Address Mapping
Breaks the Google address into its parts and puts them into the correct NTWS fields ? street, suburb, city, province, postcode, country, etc.
thanks
Johan
I am dabbling with the new GooglePlaces address lookup,
and have a very nice smooth interface working.
There are 3 script files and the last one is where the values returned from google places needs to be updated into NTWS and ideally update the fields on the page.
The script files handle all the communication and on screen type ahead interface.
Is there a script to push the values to update session variables along with the page fields?
Or another way to handle this?
thanks
Johan
tvcg1.js ? Google Loader
Stores the Google API key and loads the Google Maps/Places JavaScript library.
tvcg2.js ? Address Search
Creates the Google address search box, restricts searches by country, and gets the selected address from Google.
tvcg3.js ? Address Mapping
Breaks the Google address into its parts and puts them into the correct NTWS fields ? street, suburb, city, province, postcode, country, etc.
thanks
Johan
20
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by AtoB on September 08, 2026, 12:45:19 AM »Hi all,
the thing is: what is good practice? For example I see the following implementations of the HMAC string to validate:
- messageId.timestamp.body (looks most sensible to me ...)
- timestamp.body
- variants without dots ...
Even how the labels of the http-headers are constructed seem to vary ("webhook-timestamp" seems most common)
I was hoping Nettalk maybe had this already under the hood.
B.t.w. currently out of office and running to the shop buying Cryptonite ...
Regards,
Ton
the thing is: what is good practice? For example I see the following implementations of the HMAC string to validate:
- messageId.timestamp.body (looks most sensible to me ...)
- timestamp.body
- variants without dots ...
Even how the labels of the http-headers are constructed seem to vary ("webhook-timestamp" seems most common)
I was hoping Nettalk maybe had this already under the hood.
B.t.w. currently out of office and running to the shop buying Cryptonite ...
Regards,
Ton
Recent Posts