forked from jhpyle/docassemble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getFields; empty multiple choice and continue button field; font awes…
…ome; github branch and commit; ask_number DAObject error; sql ping fix
- Loading branch information
Showing
39 changed files
with
2,646 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
docassemble_base/docassemble/base/data/questions/examples/getFields.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
metadata: | ||
title: List of fields | ||
documentation: "https://docassemble.org/docs/functions.html#js_getFields" | ||
--- | ||
question: | | ||
Tell me about your musical tastes. | ||
fields: | ||
- Best band ever: best_band | ||
- Best singer ever: best_singer | ||
- Best composer ever: best_composer | ||
- Best songwriter ever: best_songwriter | ||
- html: | | ||
<a href="#" id="decide_for_me" class="btn btn-success">Decide for me</a> | ||
script: | | ||
<script> | ||
$("#decide_for_me").click(function(){ | ||
var fields = getFields(); | ||
for (var i = 0; i < fields.length; ++i){ | ||
setField(fields[i], 'Carly Simon'); | ||
} | ||
return false; | ||
}); | ||
</script> | ||
--- | ||
mandatory: True | ||
question: | | ||
You like ${ comma_and_list(set([best_band, best_singer, best_composer, best_songwriter])) }. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.