asked on October 10, 2020 Show version history

hello everyone!

i want to take a shot and ask the community before changing the logic behind my solution.

So i have a radio button field that has two values. These values are "product registration" and "product amendment".

When product registration is chosen a section having fields related to the registration is shown in order to let the user fill in the values. these fields have lookup rules with no conditions assigned to them for example: countries, products, supplier names and addresses... to let the user choose among this list of values.

When product amendment is chosen the same section is shown having the values already filled for an earlier registration made depending on a request id given in the form (not given if i choose product registration as the system will generate an automatic incremental request id).

My issue here is, if the user chooses first the product amendment option in the radio button by mistake and then select the product registration option. im not getting the values for the fields inside that section to let the user choose. Instead, fields are showing empty lists.

now this is happening because those fields are being assigned by two different lookup rules, so in the above scenario the second lookup rule was fired and following the request id, the fields were populated. so when i go back and select the product registration option once again, the list are not shown.

My question to you is, is there a way to assign a value to the request id field to simulate its original state? so that the second lookup rule which depends on the request id ignores the field and the first look up rule fires automatically ? i tried the value: .val('') and null using JQUERY but that didnt solve the issue.

Any help would be appreciated for that matter.

Thank you.

0 0