To make visible and set mandatory of a field through server side scripting

nityadadala
Mega Contributor

Is making a field visible and mandatory through current. or gs. ,i.e, through server side scripting is possible in UI action scripting ?if yes,please help me with the steps.

5 REPLIES 5

Uncle Rob
Kilo Patron

Why would you want to set those SERVER side?   You'd be doing it for everyone, not just the client accessing that instance of the form.


Hi Robert,



An UI action is not visible on the portal form,if it is client callable and so i wanted the script in that UI action   to be in server side totally.But,I could not find the scripting format for current. or gs. to make field visible/mandatory.


Main problem not with the Native UI but with Portal.



Thanks,


Nitya


Kalaiarasan Pus
Giga Sage

You can use Data policy to set the fields mandatory on the server side.


Hi Kalaiarasan,



thank you for your reply,but here i have to give a condition where i have to say OnClick of Button or Form Button is True...something likethis


How to implement this in a correct way?


I.e, How to fetch a UI action(Button) in scripting in UI policy?


Thanks,


Nitya