Data Script for Button Text


#1

I am using the following data transformer script on a text element, which works perfectly:
return "Follow " + input + “profile”;

When I use the same code on a button to set the text value, it only returns the value of the input data. The concat scripts seems to be completely ignored.


#2

Looking at ‘code glance’ I can see the code doesn’t seem to be updated:

<div className="elButton">
            <Button className="actionFont" style={style_elButton}  color="accent" onClick={this.onClick_elButton} >
              {this.props.fullName}
            </Button>

#3

I am having this same issue right now. I want to substring the text value before it is displayed. It only ever returns the input value though.


#4

HI, this is clearly a bug in code generation. We’ll check it in the next release.