react icon indicating copy to clipboard operation
react copied to clipboard

Updating URL hostname in all forms of form io

Open pratikpbhagat opened this issue 4 years ago • 3 comments

I have URL to pick up values in the form of json, with an ip address XXX, and now since the ip address has changed, I want to update the URL's in all the components and forms to YYY.

Is there a way to configure the URL hostname at a global level.

image

pratikpbhagat avatar Mar 11 '21 06:03 pratikpbhagat

You can use the Public project configurations, add those public configurations to the form json, and then you can replace this with the following.

{{ config.baseUrl }}/GRC....

travist avatar Mar 16 '21 20:03 travist

Can you please help me with some sample code to specify the public project configurations.

We are initializing the form io components as below.

<Form src={this.formJson} onSubmit={this.submitData} onChange={(schema) => this.formIoChanged(schema)} />

Where can I specify the configuration and pass it to the formJson as per the code above.

pratikpbhagat avatar Mar 22 '21 12:03 pratikpbhagat

If you are not using our Enterprise solution, then you will need to manually add this to the Form JSON yourself within the "config" property of the form.

travist avatar Mar 22 '21 20:03 travist

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold