freshstart Posted June 4, 2015 Report Share Posted June 4, 2015 I have a search page that passes parameters to a results page. I have the search values coming from a lookup table or a custom “Allâ€, with no value if a selection is not made from the lookup. My results page uses the parameters to get the information from a data table. Each cell in the fields of the data table may contain multiple data entries, such as multiple states (AL, GA, FL, etc.) When I select a value from the lookup table it is passed to the results page as a parameter. If a field cell contains the value from the parameter I only want to display the parameter value and not all of the contents of the cell, so I use html to display the value of the parameter. This works fine but-- If there is no value in the parameter I want to show the entire contents of the cell. Can someone give me the javascript code necessary to do the following: If parameter “[@Virtual1]†is blank show field contents “[@Field:fieldname]†Else show parameter “[@Virtual1]†I have little knowledge of javascript so I would appreciate a detailed response if you can help me. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.