I have been trying to pull Confiforms Form Field Definition data into javascript. I can't seem to find a reference for all the methods in that object. val() is referenced often, and works fine for Text, Readonly, and Text Area field types, but I need to query (and set) the Jira Issue field type and can't find the correct method(s).
Is there a list of the methods that are valid for each type of Confiforms Form Field Definitions field types?
Through sheer brute force I've been able to determine that there are .val(), .html(), .size(), .text() methods, but none return the actual Jira Issue key that I'm looking for.
"IssueLinkToUpdate" referenced below is a Confiforms Form Field Definition of Field Type = Jira Issue.
alert("Testing with Jira field: " + AJS.$('#' + formId).find('#i_IssueLinkToUpdate')); // returns object object
alert("Testing with jira field (val): " + AJS.$('#' + formId).find('#i_IssueLinkToUpdate').val()); // returns nothing
alert("Testing with jira field (html): " + AJS.$('#' + formId).find('#i_IssueLinkToUpdate').html()); // RETURNS LOTS OF HTML (is this because there are rules applied?)
alert("Testing with jira field (size): " + AJS.$('#' + formId).find('#i_IssueLinkToUpdate').size()); // RETURNS "1"
alert("Testing with jira field (text): " + AJS.$('#' + formId).find('#i_IssueLinkToUpdate').text()); // RETURNS "Start typing to see options..."
And once I know how to query the set key, how can I SET the Jira Issue key and trigger the form to pull the Jira issue data?
Needless to say, I'm new at Confiforms and Jquery.
Thanks in advance!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.