Suppose we have added an Entity Form on Portal to display Lead information to the portal.
We can make use of jQuery for this. The above code shows alert and also accesses the Topic field of Lead record using the schema name subject.
Alert Message –
Setting field value –
More details below
Hope it helps..