
Announcements
Hi,
I have embedded a html field on the Power Apps Portal Web Form.
I want to copy the value of this field in my CDS Entity field. Could you suggest me the best way to achieve this. Currently I am trying the same using a JS, But I am unable to get unable to get the CDS field access in the code.
Please assist.
Hi, as you are creating the HTML element yourself, you can add a function to the onchange event
<input name="yourcontrol" type="text" id="yourcontrolid" class="text form-control dirty" onchange="setIsDirty(this.id); yourcopyfunction(this);" autocomplete="off">and in your web page / web form make sure to have a JS function for the event "yourcopyfunction" above
var yourcopyfunction = function(control){ $("#yourcontrol").val(control.value)};
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.