Hi there,
I have 3 buttons at footer named: Cancel, Request Offer & Next, Change Offer.
Button “Change Offer” is hidden sometimes by custom code.
Issue is “Cancel” button is collapsed unexpectedly when “Change Offer” button is hidden.
When “Change offer” button is displayed, “Cancel” button is displayed properly.
“Cancel” button is footer minor button of form.
Do you have idea of in this case?
A12 version 2023.02
Thanks & Best regards!
Hi, I have suspicion, that after hiding the “Change offer” button a space for the “Cancel” button becomes smaller and therefore the "dot menu is displayed.
Could you provide your custom code?
And also would be nice if you can check in DevTools what is happening with the space of the button container.
Hi,
The custom code is just the annotation in SME to hide “Change Offer” button depends on status of Contract.
{
"name": "CustomDependentElement",
"value": "{ \"trigger-element-path\": \"Contract.ContractData.ContractStatus\", \"dependent-behavior\": [ { \"trigger-value\": \"\", \"display\": \"hide\" }, { \"trigger-value\": \"new\", \"display\": \"hide\" }, { \"trigger-value\": \"premium-calculated\", \"display\": \"hide\" }, { \"trigger-value\": \"policy-created\", \"display\": \"hide\" } ] }"
}
Besides, width of right button container seems to be over and there is no space left for “Cancel” button.
I am using SME 9.2.2 for adding button to the form and have no idea with the responsive button.
Hi, I’m not able to reproduce this behavior with the latest form engines for 2023.06 (36.x) and 2023.02 (35.x).
Can you please show your code responsible for actually hiding/displaying the button (the code that reads the values from your annotation)?