2

Using 'alert' to overcome real estate issues.

Ninox could improve the form views a great deal by allowing more control over padding between fields, field sizes, font sizes and so on.  There is a lot of wasted space in my opinion, especially when there is a lot of detail for a record.

For example I have a description field which has to be kept short due to lack of space on the form (using loads of TABS is not ideal).  To resolve that I have used formula and using alert(fieldname) in the On Click event I can quickly view the entire description or note etc.

What prompted this post was the thought of combining multiple fields in the alert.  For example:
 

Shows the truncated description.  Other fields have the BTU output, Weight, Size etc.  Each one having their own real estate.

This is the script I use:
if 'DEVICE DESCRIPTION' then
    alert('DEVICE DESCRIPTION' +
    " 
BTU:  " +
    'TOTAL BTU' +
    "
Weight: " +
    WEIGHT)
end

Which results in:
 

Hope someone finds this a handy/useful tip

NOTE:  For some bizarre reason saving the On Click when modifying the formula does not refresh any changes.  Only Refreshing the page seems to.  For example, If you add Weight (see above) post BTU and so on a page refresh is required.  At least in my case it does.

3 replies

null
    • Rafael Sanchis
    • Rafael_Sanchis
    • 1 yr ago
    • Reported - view

    Alan Cooke

    I use a button as a field description and got information of it, or other information needed. I use alert("....")

      • Alan_Cooke
      • 1 yr ago
      • Reported - view

      Rafael Nice - will make a note of that!

    • netSME_Sylvain_Moesching
    • 1 yr ago
    • Reported - view

    You could try to use dialog() with some html to arrange your information :

    dialog("Alert",html("<b>Hello</b><br>World",["Ok"]))

Content aside

  • 2 Likes
  • 1 yr agoLast active
  • 3Replies
  • 92Views
  • 3 Following