Skip to main content
shubhamk0004
Inspiring
Mar 24, 2022 6:42 PM UTC
Solved

Interface getting reload when I select a value from dropdown

Hi there,

I have created two interface which are MedicalRequestForm and EquipmentRequestForm, then I created third interface as RequestForm where I took a radio button and shown the value as RequesType (Medical and Equipment).

I want that MedicalRequestForm or EquipmentRequestForm must be shown on the basis of radio button selection which is working. But In my first both interfaces, I have one dropdown, so whenever I am selecting a value from the dropdown, then whole Interface (RequestForm) is getting reload/refresh.

Note: I took the rule input as ZMS_Requests in all the interfaces separately.

Please see the below screenshots:

1. MedicalRequestForm:

2. EquipmentRequestForm:

3. RequestForm (without selection):

4. RequestForm (with selection of Medical):

5. RequestForm is getting back as screenshot no.3 when I select a value from dropdown Animal Name as above screenshot.

Could anyone of you help me to resolve this issue?

Please let me know if you need code.

Thank you in advance!

Regards,

Shubham Kumar

shubhamk0004
Inspiring
Mar 25, 2022 4:58 AM UTC

I resolved it. I was passing the null value at line no. 33

Before:

contents: rule!ZMS_MedicalRequestForm(ZMS_Requests: "")

Now:

contents: rule!ZMS_MedicalRequestForm(ZMS_Requests: ri!ZMS_Requests),

16 replies

gopalk2865
Participating Frequently
Mar 25, 2022 2:45 AM UTC

Hi, can you check what are you saving in drop-down field? Are you making radio button selection null here? If you are saying ,after selecting from drop down you are going back to screenshot 3 then it means that selected radio button value is getting null.

shubhamk0004
Inspiring
Mar 25, 2022 4:34 AM UTC

Hi, thanks for your response.

I am saving the value for radio button, and for dropdown also.

gopalk2865
Participating Frequently
Mar 25, 2022 4:35 AM UTC

can you share your code for Aniaml name dropdown?