Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Maintain / How to make an EditBox a required field?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Maintain / How to make an EditBox a required field?
 Login/Join
 
Member
posted
Hello everyone,
I have a simple maintain application that prompts the user to input several kinds of information such as First, Last names, address .. etc. I would like to force the user to insert data in one of the fields. I searched through the properties sheet for the Editbox object and couldn't find a property for this purpose.
Any ideas?

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


WebFOCUS Developer Studio 8104 / Windows 7 / HTML and Excel
 
Posts: 16 | Registered: August 11, 2015Report This Post
Virtuoso
posted Hide Post
Ali,

In the HTML Composer tool, select the control (edit box) you want to validate. Then under its properties on the right, find the Selection and Validation property under Miscellaneous. This is the property setting that allows you to ensure the user enters something into this control. To make sure the user enters something specific into the control, you will have to add Js and probably use some regex to check for patterns in what the user enters. Unless there's some functionality that I missed that exists somewhere in the GUI that does this.

Good luck!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Master
posted Hide Post
Hi Ali
There are a number of ways to make this happen. The quickest and easiest is to do this:
1) Inside the MDE, click on the editbox
2) Look at the Properties and locate IBIValidation
3) Select 2-Required

Now the user will not be able to leave the form without filling this value in. That's the easiest, but it CAN sometimes get annoying as you REALLY can't close the form without entering something.

The other thing that people do is to create a simple JavaScript event on the fields' BLUR event:

if (Form1.Field_Edit.value== '')
{
alert("Field cannot be blank");
Form1.Field_Edit.focus();
Return(false);
}

Where Form1 is the name of your form and Field_Edit is the name of your field.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Member
posted Hide Post
Thank you Mark and CoolGuy,
I Both the validation and the JavaScript approaches work really well.

Marking this discussion as SOLVED

Ali


WebFOCUS Developer Studio 8104 / Windows 7 / HTML and Excel
 
Posts: 16 | Registered: August 11, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Maintain / How to make an EditBox a required field?

Copyright © 1996-2020 Information Builders