Customize openmrs reference app registration form for saving and editing.

Hi Guys,

I setup a reference app 2.9.0 dev environement. I want to know how i can customize the registration form to had more fields and have controle of my style writing code. I want to use htmlforms.

Please help me.

Thank you.

Hi @wdessin you can achieve this by simply adding a registration JSON App to your instance, Check this out Do you say you want to use htmlforms for registration?

Hi @ggomez ! Thank you for your answer. Yes i want to use HTMLFORM for registration.

What is your use case here, plus how many variables do you intent to collect during patient registration.

Are you using the reference application?

Thank you for your answer. I want to collect more data than what we collect in the registration app and have the capabilitie to edit entered data too. I have the intent to collect 9 other variables plus what we collect in the registration app during the registration.

Yes i am using the reference app 2.9.

Since you’re using reference application, can you look into this https://wiki.openmrs.org/plugins/servlet/mobile?contentId=92145403#content/view/92145403

Thank you! I did it but i can’t edit data entered in new field added.

Which version of the coreapps module are you running?

I just install the last version of openmrs-sdk and the 2.9 version of reference app distribution. How to know the version number of the coreapps? I see in the modules folder of my server coreapps-1.23.0-SNAPSHOT. I think it is the 1.23.0.0 version

@dkayiwa No idea?

Are you able to edit it using this server? https://qa-refapp.openmrs.org

Thank you @dkayiwa. I can’t create new app because the save button is always disable after filling the app name and Definition.

Whenever the save button is disabled, it means that you have an error in the json. Can you paste it at pastebin.com and share the paste link here?

1 Like

this is the json: https://pastebin.com/X7gnj4B1

I just get this: https://github.com/openmrs/openmrs-module-referenceapplication/blob/master/omod/src/main/resources/apps/refapp_registrationapp_app.json

Can you remove the [ at the start and ] at the end?

Yes i did but the save button is always disabled

@wdessin, I have corrected your code here. https://pastebin.com/9kbzvzca Hope that works for you.

thank you @jaghatise. I does not work. Did you test the json on this https://qa-refapp.openmrs.org?

@wdessin it’s working I think you need to run it on your local instance not on the online demo. Save button may have been deactivated on the online demo for control purposes. Run it locally please. see my screen with sample.

1 Like