Can someone please tell me the code for the following scenario.
Say I have two fields and a push button on a page(standard page)
Field1 : A(required)
Field2 : B
A pushbutton related to field B
The pushbutton has the magnifying glass symbol. Clicking upon the pushbutton takes me to the secondary page. Upon clicking 'OK' on secondary page, the outcome of the secondary page is given to the field B of standard page.
In the record field fieldchange event for pushbutton,
The following is the logic written.
Upon saving the standard page, if field B is empty, the value of field A gets saved into value of B.
If field B is given value, the value of A (concatenation) B gets saved into field B.
If field B value Is given from secondary page, the value of A (concatenation) secondary page value gets saved into field B.
But the requirement here is, the page should not get saved until the values of the secondary page is given. I.e.. the push button should be made 'required'.
What is the best way to achieve this? Piece of code to achieve this would be helpful.
Have tried putting record.Field.showrequiredfieldque=true in the record-field fieldchange event doesn't help.
Any suggestions on this please?
What I have tried:
Have tried putting record.Field.showrequiredfieldque=true in the record-field fieldchange event doesn't help.