Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: how to make edit fields as password fields to hide the text  (Read 7826 times)
ORGA-SOFT B.
Posts: 34


« on: June 30, 2017, 04:07:28 pm »

Hello,

i have a simple question, we need to build a form where a password has to typed in. So it's necessary that we can hide the input the user has made.
like ********

I searched in the documentation but no luck.
Perhabs anybody has an idea.

Thanks
Lionel F.
Four Js
Posts: 82


« Reply #1 on: June 30, 2017, 04:10:00 pm »

Hello,

I think what you need is probably the INVISIBLE attribute :
http://4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_fgl_FSFAttributes_INVISIBLE.html

Feel free to let me know if you have any other question.

Best Regards,
Lionel
ORGA-SOFT B.
Posts: 34


« Reply #2 on: June 30, 2017, 04:16:22 pm »

Thanks Lionel we try it!
Reuben B.
Four Js
Posts: 1047


« Reply #3 on: July 03, 2017, 05:17:49 am »

Quote
I searched in the documentation but no luck.

Please don't take this the wrong way but what terms did you use or how did you search the documentation?  You are not the first person to ask this question in recent months so it would be interesting to know how you approached the problem.










Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
ORGA-SOFT B.
Posts: 34


« Reply #4 on: July 03, 2017, 11:08:45 am »

Hello Reuben,

i just searched like the keywords in the subject. Example password, edit hide text .....

So the search was unable to find my keywords. If the invisible Attribute had some references to password key words  that would be nice.

INVISIBLE attribute
The INVISIBLE attribute prevents user-entered data from being echoed on the screen during an interactive statement.
Reuben B.
Four Js
Posts: 1047


« Reply #5 on: July 04, 2017, 04:52:00 am »

Quote
Hello Reuben,

i just searched like the keywords in the subject. Example password, edit hide text .....

So the search was unable to find my keywords. If the invisible Attribute had some references to password key words  that would be nice.

INVISIBLE attribute
The INVISIBLE attribute prevents user-entered data from being echoed on the screen during an interactive statement.

search on "password"  and the EDIT page  is the 3rd last of over 50 search results, so understandable that it is not found.  Search on "EDIT password" and the EDIT page with the reference to password and invisible is the top result.

I don't know how far up the search results the INVISIBLE page will move up the search results if it has the word password in it, but only one way to find out.  I suspect it will still get buried in amongst database connection and web services that also require passwords so the best technique is to add a UI term such as EDIT into the search expression.

I suppose the other thing to be aware of, is that this would either be
- a specialised widget
- an attribute for EDIT
- or a presentation style.

So FormItem types http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_FormSpecFiles_elements.html allows you to search through the widgets

To list attributes for a partricular widget, start from the widget page http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_FormSpecFiles_EDIT.html and then either  http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_FormSpecFiles_EDIT_Item_Type.html or if using stack http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_FormSpecFiles_EDIT_stack_item.html

To list presentation styles, look in the reference http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_presentation_styles_019.html (either common or for the widget)

Once you realise that then you can just iterate through those pages in the documentation when you are looking for a widget/attribute/style to do something in particular.

Reuben




Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines