Note: this sort of thing isn’t officially supported by Axure 
There’s a bug in the JS file that I think has been around for a while that prohibits you from setting the text via JS. You essentially need to shim in the setWidgetText function because it’s missing. You’ll want to add this JS to your file, either using a plugin on axshare or using an event on PageLoad to add it. The code also fixes an issue with getting a global variable’s value. Anytime I am messing with JS I include this snippet:
(function () {
$axure.internal(function($ax){
//Fix for axure's bug where this function doesn't return anything.
$ax.public.getGlobalVariable = $ax.getGlobalVariable = function(name) {
return $ax.globalVariableProvider.getVariableValue(name);
};
//Currently setting the text on an input widget throws an error that SetWidgetFormText doesn't exist.
// This shim fixes that error
SetWidgetFormText = function(elementIds, value) {
//Need to check if elementIds is a string or array. If it's a string this will never work.
if(typeof elementIds == "string") {
elementIds = Array(elementIds);
}
//This is the original function from Axure's expr.js
for(var i = 0; i < elementIds.length; i++) {
var elementId = elementIds[i];
var inputId = $ax.repeater.applySuffixToElementId(elementId, '_input');
var obj = $jobj(inputId);
if(obj.val() == value || (value == '' && $ax.placeholderManager.isActive(elementId))) return;
obj.val(value);
$ax.placeholderManager.updatePlaceholder(elementId, !value);
if($ax.event.HasTextChanged($ax.getObjectFromElementId(elementId))) $ax.event.TryFireTextChanged(elementId);
}
};
});
})();
And then… you can do something like this:
$axure(’@TextFieldName’).text(‘New Text’)
I got this code from https://github.com/itorrey/EpiPen/blob/master/plugins/EpiPen/epi.js, which I found from a post here Set Axure variable via Javascript