• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

hide form entries

New Here ,
Mar 07, 2007 Mar 07, 2007

Copy link to clipboard

Copied

I have a search screen. I would like to hide the form elements after the information from the database is displayed.
How could I accomplish this?
TOPICS
Advanced techniques

Views

444

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 07, 2007 Mar 07, 2007

Copy link to clipboard

Copied

CSS display:none works well in most modern browsers.

JavaScript is pretty good at dynamically setting this property.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2007 Mar 07, 2007

Copy link to clipboard

Copied

<cfif> statements around the form elements. Something like:

<cfif not IsDefined("query.Result1")>
--YOUR FORM ELEMENT STATEMENT --
</cfif>

Obvsiously, this is simplified, and you could do the check on session or other variables (i.e. - set them when the query is run successfully, etc.) , etc.

- Mike

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2007 Mar 08, 2007

Copy link to clipboard

Copied

LATEST
Thank You Mike for your help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation