Focal Point
[CLOSED] Required Parameters

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/231107411

May 14, 2009, 10:23 AM
DWatson
[CLOSED] Required Parameters
Is there any easy way in HTML Layout Painter to require the entry of a text box parameter?

This message has been edited. Last edited by: Kerry,


Release 773
May 14, 2009, 10:24 AM
<JG>
You need to add some javascript on the submit action to validate the form
and return an error if you do not have all the required input.
May 15, 2009, 04:32 AM
GamP
So, what you're actually saying is, no there is no easy way.
Wouldn't it be a nice NFR to have fields marked as required in the HTML painter?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
May 15, 2009, 03:04 PM
Darin Lee
I would vote for that one. Seems like it would be pretty straightforward. Since the new html painter is already inserting a bunch of javascript, seems like a "Required" property on a parameter populated by a control should be able to trigger the javascript necessary to check for missing parameter values on submit.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
May 20, 2009, 03:04 PM
DWatson
I ended up just testing for the error in my .fex and branching to some code that prints an HTML form with the message. Thanks for your input all!


Release 773
May 20, 2009, 03:12 PM
Danny-SRL
"Required" is standard in our WrapApp add-on. If you don't enter you get a pop-up alert.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF