Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text-drop down displaying underscores in output deliverables #26

Closed
RRouth opened this issue May 27, 2015 · 2 comments
Closed

Text-drop down displaying underscores in output deliverables #26

RRouth opened this issue May 27, 2015 · 2 comments

Comments

@RRouth
Copy link

RRouth commented May 27, 2015

We have an issue that is becoming quite problematic with text drop-down fields in LogicPull. Specifically, when we select a value from a drop-down field that contains a space or a special character, like a dash, it replaces it with an underscore in all of the deliverables.

As you can see in the attachment screenshot, the value we are talking about is actually taken from the ID. Would this be a difficult issue to fix? Thanks.

@ChrisZieba
Copy link
Owner

In the stylesheet you can select the text of the dropdown item instead of the id using this code:

<%= master['q0_0'].values.label[master['q0_0'].getAnswer()] %>

@ChrisZieba
Copy link
Owner

The fieldLabel method was also reimplemented to be faster. It can be used in interviews to output the label of a field:

<%fieldLabel('q0_0', q0_0)%>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants