Questions tagged [docassemble]

Docassemble on Github.

Description from (docassemble.org) [^1]:

docassemble is a free, open-source expert system for guided interviews and document assembly. It provides a web site that conducts interviews with users. Based on the information gathered, the interviews can present users with documents in PDF, RTF, or DOCX format, which users can download or e-mail.

Though the name emphasizes the document assembly feature, docassemble interviews do not need to assemble a document; they might submit an application, direct the user to other resources on the internet, store user input, interact with APIs, or simply provide the user with information.

docassemble was created by a lawyer/computer programmer for purposes of automating the practice of law, but it is a general-purpose platform that can find applications in a variety of fields.

[^1]: as of 2021-03-13

20 questions
1
vote
1 answer

Docassemble: "check in", background_response(), and "input type: combobox"

I have been following this example to update a combobox of a list of states based on input into a country field. The states combobox updates correctly, but if the country field is also a input type: combobox, background_response() doesn't seem to…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
1
vote
2 answers

TypeError: Argument 'element' has incorrect type (expected lxml.etree._Element, got None Type)

When I try to generate an interview with docx file in Docassemble it raises the error: TypeError: Argument 'element' has incorrect type (expected lxml.etree._Element, got None Type)
Iasmini Gomes
  • 727
  • 1
  • 9
  • 14
0
votes
0 answers

How to remove the "Exit" option from the menu

Currently I am using docassemble with a chat integration. I have disabled login by using the show login: False directive. Nonetheless, by doing this, now I am getting a "Exit" option in the menu of the interview. I would like to know if it possible…
Morfinismo
  • 4,985
  • 4
  • 19
  • 36
0
votes
1 answer

Using Ajax / custome JS to dynamically update states_list(), based on choice from countries_list() in same question?

I have two questions earlier in my interview, that work great together. Essentially, the first question presents a list of countries, using the very amazing and highly useful countries_list() function. The second question then presents a combobox of…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
0
votes
0 answers

Implementing https in docassemble with let's Encrypt: Issue

Good evening everyone! I am explaining my situation hoping that some good soul can help me :) I use linux operating system, ubuntu. I downloaded docker to run a software called docassemble on a server. I followed the documentation for installing…
0
votes
1 answer

Best practice for review screens + off-ramps?

Following-up on this question, I'm using the now attempting to implement a review screen, which will re-evaluate the off-ramp. The code works this way: user makes selection [mandatory code triggers question] ... one of the options gives the value…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
0
votes
2 answers

Show if / Hide if in dictionary choices?

I have been building a questions using the method shown at the bottom of the entry on Multiple Choice Lists, here: https://docassemble.org/docs/fields.html#field%20with%20choices (i.e. by specifying a list of dictionaries in a code block following a…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
0
votes
1 answer

Show exit button along with continue button on question in docassemble

I'm trying to show exit button on every question along with the continue button in docassemble. Continue button is generated by default by docassemble but I want to have the exit button too. I'm aware that it's not possible to have more than one…
0
votes
1 answer

Docassemble 'autoterms' picking up whole `field' text?

I'm rendering a list of choices using this formula: generic object: DADict question: | (!!!) What is your desired outcome for your property? fields: - "Destroy current property": x.assets['destroy_current_property'] datatype: radio code:…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
0
votes
1 answer

Pre-loading questions and logic flow?

I have an interview using the mandatory code block approach (i.e. where the mandatory code block tells DA which questions to ask, as here: https://docassemble.org/docs/logic.html#bplogic). Everything has been going swimmingly, except now I am trying…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
0
votes
2 answers

Is it possible to dynamically populate choices in one field of a question, based on answers in another field of the same question?

So for example, is something like this possible, perhaps using ajax calls, so that the latter field populates properly? question: | Where do you live? fields: - Country: country input type: combobox code: countries_list() - State: state …
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
0
votes
1 answer

Rescaling images in Docassemble docx template

Usually, like described here, images uploaded into DocAssemble (DA) can be put into the template with the corresponding Jinja2 tag defined in the DA YAML file like: question: | Please upload a picture of yourself. fields: - Picture:…
M.Mowe
  • 5
  • 3
0
votes
1 answer

Access file processed by a module in DocAssemble interview

I've written a python module which generates an image from a bunch of values as plot. The module uses matplotlib and pandas for the generation of the image. Now I'm a bit in trouble accessing the image from inside DocAssemble to put the image into a…
M.Mowe
  • 5
  • 3
0
votes
1 answer

What custom jQuery events does docassemble trigger?

I was trying to figure out if the 'Help' buttons triggered anything special that I could listen for to trigger my own function. I knew there was daPageLoad and wondered what others exist.
Mixchange
  • 893
  • 1
  • 8
  • 14
0
votes
2 answers

Abstracting code from question blocks to modules

I have a working interview (yay!), and I'm working on refactoring it. I'm trying to figure out what might be a good way to move my code blocks into .py files. In particular, I'm worried about maintaining some of the fancy things docassemble does…
NotAnAmbiTurner
  • 2,553
  • 2
  • 21
  • 44
1
2