You are viewing limited content. For full access, please sign in.

Question

Question

LF Form Lookup from Radio button selection

asked on November 11, 2015

Hi,

I am trying to perform a lookup within a Laserfiche Form and that lookup is based on a selection from a Radio Button.

In the lookup setup screen, the Radio Button variables doesn't showup, so I can't implement my process in RealTime.

Can this be added into a future release?

 

0 0

Answer

SELECTED ANSWER
replied on November 11, 2015

Blake's suggestion is definitely easiest, however you could certainly do some customization with Javascript and a hidden field if you wanted. Say your radio button has a CSS class "RadioBtn" and you make a hidden single line field with CSS class "HiddenField". You can then create the lookup rule based on the value in your hidden field, and use the following javascript to cause the radio button choice to be mirrored to the hidden field when you select something:

$(document).ready(function(){
	$('.RadioBtn input').on('change',function(){
		$('.HiddenField input').val($(this).val());
		$('.HiddenField input').trigger('change');
	});
});

The CSS to hide the single line field is just the usual

.HiddenField {display: none}

 

3 1

Replies

replied on November 12, 2015

Thanks Blake and Scott for these answers.

To give an appreciation to both responses, ...

-- Blake is providing the simplest implementation but as a user experience, sometimes dropdown fields are not that great to play with, so for this reason, I would still try using Radio buttons in some of the forms application.

-- Scott suggestion does work fine using JavaScript and allow Radio button to trigger my Real Time automation process.

I will use Scott suggestion for my existing form design.

However, I think that Laserfiche should provide Radio Button values to be available by default and should behave the same as selecting DropDown values. Can this be added to the Laserfiche Forms New Feature Request list?

3 0
replied on November 11, 2015

Since the radio button only allows from a single selection and is pre-defined, could it be changed to a drop-down field?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.