Want to suppress a section in a document when a specific radio button has been selected

0 views
Skip to first unread message

Open eSignForms

unread,
Jul 26, 2013, 12:53:08 PM7/26/13
to openesig...@googlegroups.com
From email to support:

I've made a bunch of radio buttons for a checklist. They're G and NI for Good and Needs Improvement. What I want to happen is that when they're done, a list of tasks appears of things they need to improve (based on the label of the rb_NI) at the end. So I have a couple working with document custom logic and it works. However, when the list is made, there's a blank remaining if it's a G. How do I get the logic to skip the tag and only list the NI labels?

Open eSignForms

unread,
Jul 26, 2013, 12:58:02 PM7/26/13
to openesig...@googlegroups.com
Not entirely sure, but if you can share the HTML snippet of what you are talking about for the radio buttons and lists, I can probably help.  I suspect it'll require "advanced programming" to suppress the list section in you page if you are not in page-edit mode and the radio button value is G. 

http://code.google.com/p/openesignforms/wiki/ProgrammingGuide#Advanced_programming_of_a_document

Perhaps something like:

<% if ( ! esf.isEditMode() && ! "G".equals(esf.getFieldSpecValue("rbgEvaluation")) ) { %>
...your HTML code for the list appears here
<% } %>

The idea above is that if you are NOT in edit mode (reviewing or viewing the form, but not filling it out) -- this may not be necessary since I'm not entirely sure what you are trying to achieve -- AND the radio button group (which I've named 'rbgEvaluation' but you should use whatever your name is) is NOT "G" (implies needs improvement), then we show some section that has the NI labels.
Reply all
Reply to author
Forward
0 new messages