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

Question

Question

Radio button labels

asked on January 29, 2023

Hi all, 

 

Maybe I am not searching with the right keywords but I wanted to know how to access a Radio buttons labels.

In general being new to Laserfiche, forgive me if I asking too basic a question but what language/syntax  is Laserfiche written in so I can understand where to look up Syntax etc for access variables.

Thanks

 

 

0 0

Replies

replied on January 29, 2023

Are you using the new designer or the classic designer?

Classic designer code is based on Javascript and JQuery.  New designer is based on Javascript, but requires used of the LFForm object to access the form components.

What specifically are you trying to do? Trigger something when the value changes?  Check what the value is set to when something else happens?  Change the selected value when something happens?

0 0
replied on January 29, 2023

Thanks Matthew, 

Apologies should have posted more info.

I'm currently on 11.2 Update using modern designer. I simply wanted to display the label value of a radio button  in an email notification to a user.(I didn't want to display the value as its numeric and gets fed into a system that recogines the numeric values.) Specifically it was to show a leave type, so I thought there would be an easy way to tell the user "Sick leave" has been selected, while the system receives the value of 1.

 

Thanks for the info about LFForm object/Javascript.

 

 

0 0
replied on January 29, 2023

So if you are on LFForms 11 Update 2, then the modern designer doesn’t have Javascript yet, that’s in update 3.

It sounds like you are saving the radio buttons with a separate label and value.  If that is the case, then unfortunately the email activity can only access the value, that is all that is actually saved as the process progresses.

So we need to do something extra to convert back from the selected value to its label.

One option is an additional field on the form which is populated based on the selected radio button.  You can do this with code (which is not possible in modern designer unless you upgrade) or with a formula (which would be my recommendation here).

Another option would be to use Workflow to determine what label applies for what value and then populate the value into the additional field for Forms to utilize.  Or you could have Workflow just send the email.

0 0
replied on February 5, 2023

Thanks looks like update 3 is the ticket then, that adds Javascript functionality.

 

 

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

Sign in to reply to this post.