11
Web Server - Ask For Help / Re: How to Hide and UnHide a Radio Option
« Last post by rjolda on September 15, 2026, 09:16:41 AM »Hi,
I have a radio on a MemForm. I have 7 options:
Text: p_web.GSV('autoInfo1') through .... p_web.GSV('autoInfo7')
For each one I set the Include Conditon: p_web.GSV('autoInfo1')<> '' through .... p_web.GSV('autoInfo7')<> ''
So, I read my data and fill in each p.web.SSV('autoInfo1', mydata) for each one that I need.
It is not a matter of hiding or unhiding - it is a matter of does the data exist - if yes, then the variable has a value. If not, the variable has no value and thus is not included.
HTH,
Ron
I have a radio on a MemForm. I have 7 options:
Text: p_web.GSV('autoInfo1') through .... p_web.GSV('autoInfo7')
For each one I set the Include Conditon: p_web.GSV('autoInfo1')<> '' through .... p_web.GSV('autoInfo7')<> ''
So, I read my data and fill in each p.web.SSV('autoInfo1', mydata) for each one that I need.
It is not a matter of hiding or unhiding - it is a matter of does the data exist - if yes, then the variable has a value. If not, the variable has no value and thus is not included.
HTH,
Ron
12
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« Last post by rjolda on September 15, 2026, 08:01:26 AM »Good info. Thank you.
Ron
Ron
13
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','')14
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.
15
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
16
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
17
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
18
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.
19
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
20
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
Recent Posts